|
32 | 32 | fail-fast: false
|
33 | 33 | matrix:
|
34 | 34 | php-version:
|
35 |
| - - "7.4" |
36 |
| - - "8.0" |
37 | 35 | - "8.1"
|
38 | 36 | - "8.2"
|
39 | 37 | - "8.3"
|
|
57 | 55 | - name: "Install dependencies"
|
58 | 56 | run: "composer install --no-interaction --no-progress"
|
59 | 57 |
|
60 |
| - - name: "Transform source code" |
61 |
| - if: matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3' && matrix.php-version != '8.4' |
62 |
| - shell: bash |
63 |
| - run: | |
64 |
| - composer install --no-interaction --no-progress --working-dir=compiler |
65 |
| - ./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }} |
66 |
| - composer dump |
67 |
| -
|
68 |
| -
|
69 | 58 | - name: "Tests"
|
70 | 59 | run: "make tests"
|
71 | 60 |
|
@@ -158,3 +147,46 @@ jobs:
|
158 | 147 |
|
159 | 148 | - name: "Tests"
|
160 | 149 | run: "${{ matrix.script }}"
|
| 150 | + |
| 151 | + tests-with-old-phpunit: |
| 152 | + name: "Tests with old PHPUnit" |
| 153 | + runs-on: ${{ matrix.operating-system }} |
| 154 | + timeout-minutes: 60 |
| 155 | + |
| 156 | + strategy: |
| 157 | + fail-fast: false |
| 158 | + matrix: |
| 159 | + php-version: |
| 160 | + - "7.4" |
| 161 | + - "8.0" |
| 162 | + operating-system: [ ubuntu-latest, windows-latest ] |
| 163 | + |
| 164 | + steps: |
| 165 | + - name: "Checkout" |
| 166 | + uses: actions/checkout@v4 |
| 167 | + |
| 168 | + - name: "Install PHP" |
| 169 | + uses: "shivammathur/setup-php@v2" |
| 170 | + with: |
| 171 | + coverage: "none" |
| 172 | + php-version: "${{ matrix.php-version }}" |
| 173 | + tools: pecl |
| 174 | + extensions: ds,mbstring |
| 175 | + ini-file: development |
| 176 | + ini-values: memory_limit=2G |
| 177 | + |
| 178 | + - name: "Install dependencies" |
| 179 | + run: "composer install --no-interaction --no-progress" |
| 180 | + |
| 181 | + - name: "Downgrade PHPUnit" |
| 182 | + run: "composer require --dev phpunit/phpunit:^9.6 --update-with-dependencies" |
| 183 | + |
| 184 | + - name: "Transform source code" |
| 185 | + shell: bash |
| 186 | + run: | |
| 187 | + composer install --no-interaction --no-progress --working-dir=compiler |
| 188 | + ./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }} |
| 189 | + composer dump |
| 190 | +
|
| 191 | + - name: "Tests" |
| 192 | + run: "make tests-coverage" |
0 commit comments