doc: readme #4
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
name: CI | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [8.1, 8.2, 8.3, 8.4] | |
symfony: [^5.4, ^6.0, ^7.0] | |
env: | |
APP_ENV: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
extensions: intl | |
tools: symfony | |
coverage: none | |
- id: composer-cache | |
run: | | |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Cache Composer | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php-${{ matrix.php }}-composer- | |
- name: Restrict Symfony version | |
if: matrix.symfony != '' | |
run: | | |
symfony composer global require --no-progress --no-scripts --no-plugins allow-plugins.symfony/flex "symfony/flex:^1.10" | |
symfony composer config extra.symfony.require "${{ matrix.symfony }}" | |
- run: symfony composer install --no-interaction | |
- run: symfony composer validate --strict | |
- run: symfony php bin/phpstan | |
- run: symfony php bin/php-cs-fixer fix --verbose --diff --dry-run | |
- run: symfony php bin/phpunit --colors=always |