|
38 | 38 | - name: "Install dependencies"
|
39 | 39 | run: "composer install --no-interaction --no-progress --no-suggest"
|
40 | 40 |
|
41 |
| - - name: "Update PHPUnit" |
42 |
| - if: matrix.php-version == '7.4' || matrix.php-version == '8.0' |
43 |
| - run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies" |
44 |
| - |
| 41 | + - name: "Downgrade PHPUnit" |
| 42 | + if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3' |
| 43 | + run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies" |
45 | 44 |
|
46 | 45 | - name: "Lint"
|
47 | 46 | run: "make lint"
|
|
59 | 58 | uses: "shivammathur/setup-php@v2"
|
60 | 59 | with:
|
61 | 60 | coverage: "none"
|
62 |
| - php-version: "7.4" |
| 61 | + php-version: "8.0" |
63 | 62 |
|
64 | 63 | - name: "Validate Composer"
|
65 | 64 | run: "composer validate"
|
@@ -108,9 +107,9 @@ jobs:
|
108 | 107 | if: ${{ matrix.dependencies == 'highest' }}
|
109 | 108 | run: "composer update --no-interaction --no-progress --no-suggest"
|
110 | 109 |
|
111 |
| - - name: "Update PHPUnit" |
112 |
| - if: matrix.php-version == '7.4' || matrix.php-version == '8.0' |
113 |
| - run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies" |
| 110 | + - name: "Downgrade PHPUnit" |
| 111 | + if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3' |
| 112 | + run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies" |
114 | 113 |
|
115 | 114 | - name: "Tests"
|
116 | 115 | run: "make tests"
|
@@ -152,9 +151,9 @@ jobs:
|
152 | 151 | if: ${{ matrix.dependencies == 'highest' }}
|
153 | 152 | run: "composer update --no-interaction --no-progress --no-suggest"
|
154 | 153 |
|
155 |
| - - name: "Update PHPUnit" |
156 |
| - if: matrix.php-version == '7.4' || matrix.php-version == '8.0' |
157 |
| - run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies" |
| 154 | + - name: "Downgrade PHPUnit" |
| 155 | + if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3' |
| 156 | + run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies" |
158 | 157 |
|
159 | 158 | - name: "PHPStan"
|
160 | 159 | run: "make phpstan"
|
0 commit comments