Merge pull request #18 from Rafikooo/symfony-8-support #97
Workflow file for this run
This file contains hidden or 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: ~ | |
| release: | |
| types: [created] | |
| schedule: | |
| - | |
| cron: "0 1 * * 6" # Run at 1am every Saturday | |
| workflow_dispatch: ~ | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, ORM ${{ matrix.orm }}" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [8.1, 8.2, 8.3, 8.4] | |
| symfony: [5.4.*, 6.4.*, 7.1.*, 7.2.*] | |
| orm: [^2.20, ^3.3] | |
| exclude: | |
| - php: 8.1 | |
| symfony: 7.0.* | |
| - php: 8.1 | |
| symfony: 7.1.* | |
| - php: 8.1 | |
| symfony: 7.2.* | |
| steps: | |
| - | |
| uses: actions/checkout@v4 | |
| - | |
| name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "${{ matrix.php }}" | |
| extensions: intl | |
| tools: symfony | |
| coverage: none | |
| - | |
| name: Get Composer cache directory | |
| id: composer-cache | |
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - | |
| 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: Require Doctrine ORM | |
| run: composer require doctrine/orm:${{ matrix.orm }} --no-interaction --no-install | |
| - | |
| name: Require Symfony version | |
| run: composer require symfony/property-access:${{ matrix.symfony }} --no-interaction --update-with-all-dependencies --prefer-dist | |
| - | |
| name: Install PHP dependencies | |
| run: composer install --no-interaction | |
| - | |
| name: Validate composer.json | |
| run: composer validate --ansi --strict |