|
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 |
|
@@ -118,8 +107,8 @@ jobs: |
118 | 107 | ini-file: development |
119 | 108 | ini-values: memory_limit=1G |
120 | 109 |
|
121 | | - - name: "Install PHPUnit 10.x" |
122 | | - run: "composer remove --dev brianium/paratest && composer require --dev --with-all-dependencies phpunit/phpunit:^10 sebastian/diff:^5.0" |
| 110 | + - name: "Install dependencies" |
| 111 | + run: "composer install --no-interaction --no-progress" |
123 | 112 |
|
124 | 113 | - id: set-matrix |
125 | 114 | run: echo "matrix=$(php .github/workflows/tests-levels-matrix.php)" >> $GITHUB_OUTPUT |
@@ -158,3 +147,51 @@ 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: "Downgrade PHPUnit" |
| 179 | + shell: bash |
| 180 | + run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 --update-with-dependencies --ignore-platform-reqs" |
| 181 | + |
| 182 | + - name: "Install dependencies" |
| 183 | + run: "composer install --no-interaction --no-progress" |
| 184 | + |
| 185 | + - name: "Downgrade PHPUnit with Paratest" |
| 186 | + shell: bash |
| 187 | + run: "composer require --dev phpunit/phpunit:^9.6 brianium/paratest:^6.5 symfony/console:^5.4 symfony/process:^5.4 --update-with-dependencies --ignore-platform-reqs --working-dir=tests" |
| 188 | + |
| 189 | + - name: "Transform source code" |
| 190 | + shell: bash |
| 191 | + run: | |
| 192 | + composer install --no-interaction --no-progress --working-dir=compiler |
| 193 | + ./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }} |
| 194 | + composer dump |
| 195 | +
|
| 196 | + - name: "Tests" |
| 197 | + run: "make tests" |
0 commit comments