Skip to content

use a PHPUnit bridge version that is compatible with recent PHPUnit releases #34

use a PHPUnit bridge version that is compatible with recent PHPUnit releases

use a PHPUnit bridge version that is compatible with recent PHPUnit releases #34

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
jobs:
latest:
name: PHP ${{ matrix.php }} Latest with Symfony ${{ matrix.symfony-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.3', '7.4', '8.0']
symfony-version: ['*']
include:
- php: '7.4'
symfony-version: 3.4.*
- php: '7.4'
symfony-version: 4.4.*
- php: '8.0'
symfony-version: 5.4.*
- php: '8.0'
symfony-version: 6.0.*
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Composer validate
run: composer validate --strict --no-check-lock
- name: Symfony version
if: matrix.symfony-version != '*'
run: composer global require --no-progress symfony/flex && composer config extra.symfony.require ${{ matrix.symfony-version }}
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: composer test
lowest:
name: PHP ${{ matrix.php }} Lowest
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.3']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Install dependencies
run: composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress
- name: Execute tests
run: composer test
coverage:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer:v2
coverage: xdebug
- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: composer test