Add CI tests against PHP 8.4 and Symfony 7 #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: ~ | |
push: | |
branches: | |
- master | |
jobs: | |
tests: | |
name: Test (PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- php: 7.4 | |
symfony: "^4.4" | |
- php: 8.1 | |
symfony: "^5.4" | |
- php: 8.2 | |
symfony: "^5.4" | |
- php: 8.3 | |
symfony: "^6.4" | |
- php: 8.4 | |
symfony: "^7.1" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker compose | |
run: docker compose up -d | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Restrict Symfony version | |
if: matrix.symfony | |
run: composer require "symfony/symfony:${{ matrix.symfony }}" --no-update | |
- name: Install dependencies | |
uses: ramsey/composer-install@v3 | |
- name: Docker compose wait | |
run: docker compose up --wait crossbar | |
- name: Run tests | |
run: vendor/bin/phpunit --coverage-clover=build/coverage-report.xml | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: build/coverage-report.xml | |
fail_ci_if_error: true |