From 37f5ea76ce2a622fd279bbe6485d6f993c995324 Mon Sep 17 00:00:00 2001 From: Szymon Kostrubiec Date: Mon, 15 Jul 2024 13:32:33 +0200 Subject: [PATCH] OP-351 - CR fixes, add PHP 8.0 check rule for Sylius 1.12 on symfony 5.4 --- .github/workflows/build.yml | 9 ++++++++- .github/workflows/coding_standard.yml | 11 +++++++++-- phpstan.neon => phpstan.neon.dist | 0 3 files changed, 17 insertions(+), 3 deletions(-) rename phpstan.neon => phpstan.neon.dist (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19b73657e..799f5927a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,12 +19,19 @@ jobs: strategy: fail-fast: false matrix: - php: [ "8.1", "8.2", "8.3" ] + php: [ "8.0", "8.1", "8.2", "8.3" ] symfony: [ "^5.4", "^6.4" ] sylius: [ "^1.12", "^1.13" ] node: [ "18.x", "20.x" ] mysql: [ "8.0" ] + exclude: + - sylius: ^1.13 + php: 8.0 + - sylius: ^1.12 + php: 8.0 + symfony: ^6.4 + env: APP_ENV: test DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?serverVersion=${{ matrix.mysql }}" diff --git a/.github/workflows/coding_standard.yml b/.github/workflows/coding_standard.yml index 8f49a540c..a1d76639f 100644 --- a/.github/workflows/coding_standard.yml +++ b/.github/workflows/coding_standard.yml @@ -18,11 +18,18 @@ jobs: strategy: fail-fast: false matrix: - php: [ "8.1", "8.2", "8.3" ] + php: [ "8.0", "8.1", "8.2", "8.3" ] symfony: [ "^5.4", "^6.4" ] sylius: [ "^1.12", "^1.13" ] node: [ "18.x", "20.x" ] + exclude: + - sylius: ^1.13 + php: 8.0 + - sylius: ^1.12 + php: 8.0 + symfony: ^6.4 + steps: - uses: actions/checkout@v3 @@ -63,7 +70,7 @@ jobs: SYMFONY_REQUIRE: ${{ matrix.symfony }} - name: Run PHPStan - run: vendor/bin/phpstan analyse -c phpstan.neon -l 8 src/ + run: vendor/bin/phpstan analyse -c phpstan.neon.dist -l 8 src/ - name: Run ECS run: vendor/bin/ecs diff --git a/phpstan.neon b/phpstan.neon.dist similarity index 100% rename from phpstan.neon rename to phpstan.neon.dist