Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/mago.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ jobs:
if: matrix.dependencies == 'latest'
run: composer update $COMPOSER_FLAGS

# Override the php-version in mago.toml to match the matrix PHP version
# so that syntax-level checks are accurate for each version.
# Set the Mago PHP version via env var so it overrides mago.toml
# for each matrix PHP version without mutating the config file.
- name: Pin Mago PHP version
run: |
sed -i 's/^php-version = .*/php-version = "${{ matrix.php }}"/' mago.toml
run: echo "MAGO_PHP_VERSION=${{ matrix.php }}" >> "$GITHUB_ENV"

- name: Check formatting
run: mago format --check
Expand All @@ -67,4 +66,4 @@ jobs:

- name: Test
if: (success() || failure()) && matrix.php != '8.3'
run: ./vendor/bin/phpunit --colors=always
run: ./vendor/bin/phpunit --colors=always