Skip to content

Merge pull request #29 from developermarshak/patch-1 #7

Merge pull request #29 from developermarshak/patch-1

Merge pull request #29 from developermarshak/patch-1 #7

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 }}