From 4258a3c201574819e9c20544d4f92525bc0dfa93 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 10 Oct 2020 00:58:29 +0100 Subject: [PATCH] Work around bugs --- .github/workflows/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index df89ff7..49b1091 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,22 @@ jobs: - name: Setup Problem Matchers run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Fix PHPUnit Version PHP < 7.4 + uses: nick-invision/retry@v1 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer require "phpunit/phpunit:^6.5.14 || ^7.5.20 || ^8.5.8" --dev --no-update --no-interaction + if: "matrix.php < 7.4" + + - name: Fix PHPUnit Version PHP >= 7.4 + uses: nick-invision/retry@v1 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer require "phpunit/phpunit:^9.3.3" --dev --no-update --no-interaction + if: "matrix.php >= 7.4" + - name: Install PHP Dependencies uses: nick-invision/retry@v1 with: