Upgrade to Symfony 5.x support (version 5.0.x) #45
Workflow file for this run
This file contains hidden or 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: CI | |
| on: ['push', 'pull_request'] | |
| jobs: | |
| cs: | |
| runs-on: ubuntu-latest | |
| name: Coding style | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 7.4 | |
| extensions: json, mbstring | |
| tools: composer, php-cs-fixer:3.0 | |
| - name: Display tools versions | |
| run: | | |
| composer --version | |
| php-cs-fixer --version | |
| - name: Check PHP code | |
| run: php-cs-fixer fix --dry-run --diff --ansi | |
| phpunit: | |
| name: PHPUnit (PHP ${{ matrix.php }} + ${{ matrix.symfony-version}}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| env: | |
| SYMFONY_REQUIRE: "${{ matrix.symfony_require }}" | |
| strategy: | |
| matrix: | |
| include: | |
| - php: '7.4' | |
| dependencies: 'lowest' | |
| symfony_require: '5.0.*' | |
| - php: '7.4' | |
| dependencies: 'highest' | |
| symfony_require: '5.4.*' | |
| - php: '8.0' | |
| dependencies: 'highest' | |
| symfony_require: '5.4.*' | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "${{ matrix.php }}" | |
| tools: pecl, composer | |
| extensions: curl, json, mbstring, openssl | |
| - name: Globally install symfony/flex | |
| run: composer global require --no-progress --no-scripts --no-plugins symfony/flex | |
| - name: Allow Symfony Flex plugin | |
| run: composer global config --no-plugins allow-plugins.symfony/flex true | |
| - name: Install Composer dependencies (${{ matrix.dependencies }}) | |
| uses: ramsey/composer-install@v1 | |
| with: | |
| dependency-versions: "${{ matrix.dependencies }}" | |
| composer-options: "--prefer-dist --prefer-stable" | |
| - name: Run unit tests | |
| run: | | |
| vendor/bin/phpunit |