Skip to content

CI

CI #9

name: CI
on:
push:
pull_request:
jobs:
phpunit:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- php: '7.4'
phpunit: '8.5'
- php: '8.0'
phpunit: '8.5'
- php: '8.1'
phpunit: '8.5'
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: 'composer:v2'
- 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 }}