feat: symfony 7 support #15
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
name: CI | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- master | |
jobs: | |
php-cs-fixer: | |
name: PHP-CS-Fixer | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: PHP-CS-Fixer | |
uses: docker://oskarstark/php-cs-fixer-ga | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.3'] | |
symfony: ['^7.0'] | |
# include: | |
# - php: 8.3 | |
# symfony: '^6.4' | |
# - php: 8.3 | |
# symfony: '^7.0' | |
steps: | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
tools: flex | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup symfony | |
if: matrix.symfony != '' | |
run: | | |
echo 'SYMFONY_REQUIRE=${{ matrix.symfony }}' >> $GITHUB_ENV | |
- name: Download dependencies | |
run: | | |
composer clear-cache | |
composer install --prefer-dist --no-interaction | |
- name: Validate | |
run: | | |
composer validate --strict --no-check-lock | |
- name: Run tests | |
env: | |
SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: 1 | |
run: | | |
SYMFONY_PHPUNIT_VERSION=9.6 ./vendor/bin/simple-phpunit |