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 diff --git a/tests/RulesTest.php b/tests/RulesTest.php index 43b7f0e..cde760c 100644 --- a/tests/RulesTest.php +++ b/tests/RulesTest.php @@ -35,7 +35,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