feat: add symfony 70 support #13
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: Build | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['8.2', '8.3', '8.4'] | |
symfony: ['6.3', '6.4', '7.0', '7.1', '7.2'] | |
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} with Symfony ${{ matrix.symfony }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: xdebug | |
tools: composer:v2.5 | |
extensions: swoole inotify | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
shell: bash | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Update Symfony version | |
run: | | |
rm -rf composer.lock vendor | |
composer require symfony/console:${{ matrix.symfony }} \ | |
symfony/dependency-injection:${{ matrix.symfony }} \ | |
symfony/framework-bundle:${{ matrix.symfony }} \ | |
symfony/http-kernel:${{ matrix.symfony }} \ | |
symfony/runtime:${{ matrix.symfony }} \ | |
symfony/http-foundation:${{ matrix.symfony }} \ | |
--no-update --no-scripts | |
- name: Install Composer dependencies | |
run: composer install | |
- name: Show installed packages | |
run: composer show | |
- name: Show php info | |
run: | | |
php -v | |
php -m | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Run Static Analysis | |
run: composer analyze | |
- name: Run Tests | |
run: composer tests |