From d2462268cf02f330997c50275979192e9d98aacd Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Fri, 26 Jun 2026 23:50:20 -0500 Subject: [PATCH] simplify workflow setup Signed-off-by: Joey Smith --- .github/workflows/mago.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mago.yml b/.github/workflows/mago.yml index 6214485..4b932db 100644 --- a/.github/workflows/mago.yml +++ b/.github/workflows/mago.yml @@ -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 @@ -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 \ No newline at end of file