From 17f405cf62ff27f50cba22db0317305ef496de8b Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Fri, 12 Feb 2021 14:18:39 +0100 Subject: [PATCH] Attempt to provide allow failure for PHP8.1 unit tests (#1847) * Attempt to provide allow failure for PHP8.1 unit tests PHP8.1 Tests show as passed despite the errors, and it requires checking the actual output from the run to see what the rea result is; but I can live with that until github provides functionality for a proper allow_failure option --- .github/workflows/main.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5f68a4ff..707a9a3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,12 +5,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + experimental: + - false php-version: - '7.2' - '7.3' - '7.4' - '8.0' - - '8.1' + + include: + - php-version: '8.1' + experimental: true name: PHP ${{ matrix.php-version }} @@ -52,8 +57,10 @@ jobs: - name: Setup problem matchers for PHPUnit run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Test with PHPUnit - run: ./vendor/bin/phpunit + - name: "Run PHPUnit tests (Experimental: ${{ matrix.experimental }})" + env: + FAILURE_ACTION: "${{ matrix.experimental == true }}" + run: vendor/bin/phpunit --verbose || $FAILURE_ACTION php-cs-fixer: runs-on: ubuntu-latest