Merge pull request #27 from biobodya/feat/symfony7 #4
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
phpunit: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- php: '7.2' | |
phpunit: '8.5' | |
symfony: '4.4.*' | |
- php: '7.2' | |
phpunit: '8.5' | |
symfony: '5.4.*' | |
- php: '7.3' | |
phpunit: '9.5' | |
symfony: '4.4.*' | |
- php: '7.3' | |
phpunit: '9.5' | |
symfony: '5.4.*' | |
- php: '7.4' | |
phpunit: '9.5' | |
symfony: '4.4.*' | |
- php: '7.4' | |
phpunit: '9.5' | |
symfony: '5.4.*' | |
- php: '8.0' | |
phpunit: '9.5' | |
symfony: '4.4.*' | |
- php: '8.0' | |
phpunit: '9.5' | |
symfony: '5.4.*' | |
- php: '8.0' | |
phpunit: '9.5' | |
symfony: '6.0.*' | |
- php: '8.1' | |
phpunit: '9.5' | |
symfony: '4.4.*' | |
- php: '8.1' | |
phpunit: '9.5' | |
symfony: '5.4.*' | |
- php: '8.1' | |
phpunit: '9.5' | |
symfony: '6.0.*' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: 'composer:v2,flex' | |
- name: Cache Composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: '~/.composer/cache' | |
key: ${{ runner.os }}-php${{ matrix.php }}-phpunit${{ matrix.phpunit }}-symfony${{ matrix.symfony }}-${{ hashFiles('**/composer.json') }} | |
- name: Install dependencies with composer | |
env: | |
SYMFONY_REQUIRE: ${{ matrix.symfony }} | |
run: composer update --no-interaction --no-progress | |
- name: Run test suite | |
uses: php-actions/phpunit@v3 | |
with: | |
php_version: ${{ matrix.php }} | |
version: ${{ matrix.phpunit }} |