v2.5.0 #338
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 }}${{ matrix.symfony != '' && format(', Symfony {0}', matrix.symfony) || '' }}${{ matrix.twig != '' && format(', Twig {0}', matrix.twig) || '' }}" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ["8.2", "8.3", "8.4", "8.5"] | |
| symfony: ["^6.4", "^7.4", "^8.0"] | |
| twig: ["3.*"] | |
| exclude: | |
| - php: "8.2" | |
| symfony: "^8.0" | |
| - php: "8.3" | |
| symfony: "^8.0" | |
| steps: | |
| - | |
| uses: actions/checkout@v4 | |
| - | |
| name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "${{ matrix.php }}" | |
| coverage: none | |
| tools: 'composer:v2, flex' | |
| - | |
| name: Restrict Symfony version | |
| if: matrix.symfony != '' | |
| run: | | |
| composer config extra.symfony.require "${{ matrix.symfony }}" | |
| - | |
| name: Update Twig version | |
| if: matrix.twig != '' | |
| run: composer require --dev "twig/twig:${{ matrix.twig }}" --no-update --no-scripts | |
| - | |
| name: Remove analyse dependencies | |
| run: | | |
| composer remove sylius-labs/coding-standard --dev --no-update | |
| composer remove rector/rector --dev --no-update | |
| - | |
| name: Install dependencies | |
| run: composer update | |
| - | |
| name: Run tests | |
| run: composer test | |
| analyse: | |
| runs-on: ubuntu-latest | |
| name: "PHP Analyse" | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - | |
| uses: actions/checkout@v4 | |
| - | |
| name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.2" | |
| coverage: none | |
| tools: 'composer:v2, flex' | |
| - | |
| name: Restrict Symfony version | |
| run: | | |
| composer config extra.symfony.require "6.4.*" | |
| - | |
| name: Install dependencies | |
| run: composer update | |
| - | |
| name: Run analysis | |
| run: composer analyse |