Skip to content

Update tests.yaml

Update tests.yaml #23

Workflow file for this run

name: Tests

Check failure on line 1 in .github/workflows/tests.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yaml

Invalid workflow file

`pr` is not a valid event name
on:
push:
pr:
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
version:
- php: '8.3'
symfony: '5.4'
- php: '8.3'
symfony: '6.4'
- php: '8.3'
symfony: '7.0'
name: PHP ${{ matrix.version.php }} Symfony ${{ matrix.version.symfony }}
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version.php }}
tools: phpunit-bridge, flex
extensions: pdo_sqlite, redis
coverage: none
- run: |
composer config extra.symfony.require ${{ matrix.version.symfony }}
composer update
- run: vendor/bin/php-cs-fixer fix --dry-run --diff
- run: vendor/bin/phpunit --exclude-group not-${{ matrix.version.symfony }}
env:
SYMFONY_DEPRECATIONS_HELPER: 'disabled=1'