From e85face97d0c1ccc07dd6e7c20390db9ef22ac30 Mon Sep 17 00:00:00 2001 From: Khoubza Younes Date: Sun, 6 Dec 2020 21:02:07 +0100 Subject: [PATCH] fix phpunit version --- src/Notyf/Prime/.github/workflows/tests.yaml | 8 ++++++++ src/Pnotify/Prime/.github/workflows/tests.yaml | 8 ++++++++ src/Prime/.github/workflows/tests.yaml | 8 ++++++++ src/SweetAlert/Prime/.github/workflows/tests.yaml | 8 ++++++++ src/Toastr/Prime/.github/workflows/tests.yaml | 8 ++++++++ 5 files changed, 40 insertions(+) diff --git a/src/Notyf/Prime/.github/workflows/tests.yaml b/src/Notyf/Prime/.github/workflows/tests.yaml index 4bddbd69..39587294 100644 --- a/src/Notyf/Prime/.github/workflows/tests.yaml +++ b/src/Notyf/Prime/.github/workflows/tests.yaml @@ -33,6 +33,14 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - name: Require phpunit 6 for php >= 7.0 + if: matrix.php >= 7.0 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:6.*" --no-interaction --no-update + + - name: Require phpunit 9 for php >= 7.3 + if: matrix.php >= 7.3 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:9.*" --no-interaction --no-update + - name: Install dependencies run: COMPOSER_MEMORY_LIMIT=-1 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest diff --git a/src/Pnotify/Prime/.github/workflows/tests.yaml b/src/Pnotify/Prime/.github/workflows/tests.yaml index a691559c..be6984b5 100644 --- a/src/Pnotify/Prime/.github/workflows/tests.yaml +++ b/src/Pnotify/Prime/.github/workflows/tests.yaml @@ -33,6 +33,14 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - name: Require phpunit 6 for php >= 7.0 + if: matrix.php >= 7.0 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:6.*" --no-interaction --no-update + + - name: Require phpunit 9 for php >= 7.3 + if: matrix.php >= 7.3 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:9.*" --no-interaction --no-update + - name: Install dependencies run: COMPOSER_MEMORY_LIMIT=-1 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest diff --git a/src/Prime/.github/workflows/tests.yaml b/src/Prime/.github/workflows/tests.yaml index a691559c..be6984b5 100644 --- a/src/Prime/.github/workflows/tests.yaml +++ b/src/Prime/.github/workflows/tests.yaml @@ -33,6 +33,14 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - name: Require phpunit 6 for php >= 7.0 + if: matrix.php >= 7.0 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:6.*" --no-interaction --no-update + + - name: Require phpunit 9 for php >= 7.3 + if: matrix.php >= 7.3 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:9.*" --no-interaction --no-update + - name: Install dependencies run: COMPOSER_MEMORY_LIMIT=-1 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest diff --git a/src/SweetAlert/Prime/.github/workflows/tests.yaml b/src/SweetAlert/Prime/.github/workflows/tests.yaml index a691559c..be6984b5 100644 --- a/src/SweetAlert/Prime/.github/workflows/tests.yaml +++ b/src/SweetAlert/Prime/.github/workflows/tests.yaml @@ -33,6 +33,14 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - name: Require phpunit 6 for php >= 7.0 + if: matrix.php >= 7.0 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:6.*" --no-interaction --no-update + + - name: Require phpunit 9 for php >= 7.3 + if: matrix.php >= 7.3 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:9.*" --no-interaction --no-update + - name: Install dependencies run: COMPOSER_MEMORY_LIMIT=-1 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest diff --git a/src/Toastr/Prime/.github/workflows/tests.yaml b/src/Toastr/Prime/.github/workflows/tests.yaml index a691559c..be6984b5 100644 --- a/src/Toastr/Prime/.github/workflows/tests.yaml +++ b/src/Toastr/Prime/.github/workflows/tests.yaml @@ -33,6 +33,14 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - name: Require phpunit 6 for php >= 7.0 + if: matrix.php >= 7.0 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:6.*" --no-interaction --no-update + + - name: Require phpunit 9 for php >= 7.3 + if: matrix.php >= 7.3 + run: COMPOSER_MEMORY_LIMIT=-1 composer require "phpunit/phpunit:9.*" --no-interaction --no-update + - name: Install dependencies run: COMPOSER_MEMORY_LIMIT=-1 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest