Add bin/release script to enforce dual-tag release invariant #12
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: ~ | |
| workflow_dispatch: ~ | |
| jobs: | |
| checks: | |
| name: "PHP ${{ matrix.php }} | SF ${{ matrix.symfony }} | Sylius ${{ matrix.sylius }} | ${{ matrix.dependencies }}" | |
| runs-on: "ubuntu-latest" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: | |
| - "8.2" | |
| - "8.3" | |
| - "8.4" | |
| symfony: | |
| - "~6.4.0" | |
| - "~7.4.0" | |
| sylius: | |
| - "~2.0.0" | |
| - "~2.1.0" | |
| - "~2.2.0" | |
| dependencies: | |
| - "highest" | |
| - "lowest" | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v6" | |
| - name: "Setup PHP, with composer and extensions" | |
| uses: "shivammathur/setup-php@v2" | |
| with: | |
| php-version: "${{ matrix.php }}" | |
| coverage: "none" | |
| tools: "flex" | |
| - name: "Require Sylius version" | |
| run: "composer require --dev --no-update sylius/sylius:${{ matrix.sylius }}" | |
| - name: "Install composer dependencies" | |
| uses: "ramsey/composer-install@v4" | |
| with: | |
| dependency-versions: "${{ matrix.dependencies }}" | |
| env: | |
| SYMFONY_REQUIRE: "${{ matrix.symfony }}" | |
| - name: "Validate composer" | |
| run: "composer validate --strict" | |
| - name: "Check composer normalized" | |
| run: "composer normalize --dry-run" |