From e267600e920bfc6e8924c479af7de209f0b01e3f Mon Sep 17 00:00:00 2001 From: Rudolph Gottesheim Date: Thu, 31 Oct 2024 12:33:02 +0100 Subject: [PATCH 1/2] Run CI on PHP 8.3, 8.4 --- .github/workflows/checks.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a4783c8..ed27975 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,19 +7,22 @@ jobs: strategy: matrix: - php: ["8.1", "8.2"] + php: ["8.1", "8.2", "8.3", "8.4"] composer_flags: - '--prefer-lowest' - '' runs-on: ubuntu-latest - container: - image: eventjet/checks-${{ matrix.php }}:latest steps: - name: Checkout uses: actions/checkout@v3 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + - name: Prepare environment run: | echo "COMPOSER_CACHE=$(composer config cache-dir)" >> $GITHUB_ENV From 3e818702b71fbbd092f784b50034af59902141f7 Mon Sep 17 00:00:00 2001 From: Rudolph Gottesheim Date: Thu, 31 Oct 2024 12:47:33 +0100 Subject: [PATCH 2/2] Enable PHP_CS_FIXER_IGNORE_ENV in tests --- tests/RulesTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RulesTest.php b/tests/RulesTest.php index 0cacffa..ea0386b 100644 --- a/tests/RulesTest.php +++ b/tests/RulesTest.php @@ -32,7 +32,7 @@ final class RulesTest extends TestCase private static function phpCsFixerCommand(string $file): string { return sprintf( - '%s/../vendor/bin/php-cs-fixer fix --dry-run --config %s/php-cs-fixer-config.php %s', + 'PHP_CS_FIXER_IGNORE_ENV=1 %s/../vendor/bin/php-cs-fixer fix --dry-run --config %s/php-cs-fixer-config.php %s', __DIR__, __DIR__, $file