Merge pull request #148 from mhor/symfony-7 #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code_Checks | |
on: | |
pull_request: null | |
push: | |
branches: | |
- master | |
env: | |
LANG: "en_US.UTF-8" | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"] | |
name: PHP ${{ matrix.php }} tests | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none # disable xdebug, pcov | |
- run: composer install --no-progress | |
- run: vendor/bin/phpunit | |
test_lowest_dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: git fetch --depth=100000 origin | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.2 | |
coverage: none | |
- run: composer update --no-progress --prefer-lowest | |
- run: vendor/bin/phpunit | |
test_symfony_34: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: git fetch --depth=100000 origin | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.2 | |
coverage: none | |
- run: composer install | |
- run: composer require --no-interaction --prefer-source symfony/process:3.4.* symfony/filesystem:3.4.* | |
- run: vendor/bin/phpunit | |
test_symfony_40: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: git fetch --depth=100000 origin | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.3 | |
coverage: none | |
- run: composer install | |
- run: composer require --no-interaction --prefer-source symfony/process:4.0.* symfony/filesystem:4.0.* | |
- run: vendor/bin/phpunit | |
test_symfony_44: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: git fetch --depth=100000 origin | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
coverage: none | |
- run: composer install | |
- run: composer require --no-interaction --prefer-source symfony/process:4.4.* symfony/filesystem:4.4.* | |
- run: vendor/bin/phpunit | |
test_symfony_5: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: git fetch --depth=100000 origin | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
coverage: none | |
- run: composer install | |
- run: composer require --no-interaction --prefer-source symfony/process:~5.0 symfony/filesystem:~5.0 | |
- run: vendor/bin/phpunit | |
test_symfony_60: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: git fetch --depth=100000 origin | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: none | |
- run: composer install | |
- run: composer require --no-interaction --prefer-source symfony/process:~6.0 symfony/filesystem:~6.0 | |
- run: vendor/bin/phpunit | |
test_symfony_70: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: git fetch --depth=100000 origin | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: none | |
- run: composer install | |
- run: composer require --no-interaction --prefer-source symfony/process:~7.0 symfony/filesystem:~7.0 | |
- run: vendor/bin/phpunit | |
ecs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.0 | |
coverage: none | |
- run: composer install --no-progress | |
- run: composer require symplify/easy-coding-standard --dev | |
- run: vendor/bin/ecs check --ansi |