From 4f7d06e2a7eb4bd63cf11ed30e29b7640b9e6c68 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 10 Dec 2021 13:13:53 +0100 Subject: [PATCH] Mark PHP8.1 phpstan build experimental --- .github/workflows/phpstan.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index a3c9dc084..7f0cfd529 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -17,12 +17,15 @@ jobs: name: "PHPStan" runs-on: ubuntu-latest + continue-on-error: ${{ matrix.experimental }} strategy: matrix: - php-version: - - "7.2" - - "8.1" + include: + - php-version: "7.2" + experimental: false + - php-version: "8.1" + experimental: true fail-fast: false steps: @@ -49,11 +52,11 @@ jobs: restore-keys: "php-${{ matrix.php-version }}-symfony-php-unit-version-${{ env.SYMFONY_PHPUNIT_VERSION }}" - name: "Install highest dependencies" - if: "matrix.php-version != '7.2'" + if: "matrix.experimental == true" run: "composer config platform --unset && composer update ${{ env.COMPOSER_FLAGS }}" - name: "Install locked dependencies" - if: "matrix.php-version == '7.2'" + if: "matrix.experimental == false" run: "composer config platform --unset && composer update ${{ env.COMPOSER_FLAGS }}" - name: "Initialize PHPUnit sources"