-
Notifications
You must be signed in to change notification settings - Fork 14
31 lines (29 loc) · 995 Bytes
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Tests
on:
push:
pr:
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php: ["8.3"]
symfony: ["5.4", "6.4", "7.0"]
enable-redis: [true, false]
name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony }} Redis ${{ matrix.enable-redis && 'enabled' || 'disabled' }}
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: phpunit-bridge, flex
extensions: "pdo_sqlite ${{ matrix.enable-redis && ', redis' || '' }}"
coverage: none
- run: |
composer config extra.symfony.require ${{ matrix.symfony }}
composer update
- run: vendor/bin/php-cs-fixer fix --dry-run --diff
- run: vendor/bin/phpunit --exclude-group not-${{ matrix.symfony }} ${{ !matrix.enable-redis && '--exclude-group redis' || '' }}
env:
SYMFONY_DEPRECATIONS_HELPER: "disabled=1"