Skip to content

Merge pull request #30 from escemi-tech/fix-set-redis-optional #24

Merge pull request #30 from escemi-tech/fix-set-redis-optional

Merge pull request #30 from escemi-tech/fix-set-redis-optional #24

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:
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"