Skip to content

[chore] Upgrade dependencies and test against newer PHP versions #37

[chore] Upgrade dependencies and test against newer PHP versions

[chore] Upgrade dependencies and test against newer PHP versions #37

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
symfony:
name: PHP ${{ matrix.php-versions }} (${{ matrix.dependencies }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dependencies: [highest]
php-versions:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
include:
- php-versions: '7.2'
dependencies: 'lowest'
- php-versions: '8.5'
dependencies: 'highest'
composer-options: '--ignore-platform-req=php+'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, ctype, iconv, curl
coverage: xdebug
- name: Install Composer dependencies (${{ matrix.dependencies }})
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: ${{ matrix.composer-options }}
- name: Run Tests
run: vendor/bin/phpunit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
- name: Run mutation tests
if: ${{ matrix.php-versions == 8.4 }}
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
run: vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=100 --min-msi=100 -s -j4