Changeset 50444
- Timestamp:
- 02/26/2021 03:07:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/phpunit-tests.yml
r50442 r50444 25 25 PHPUNIT_SCRIPT: php 26 26 LOCAL_PHP_MEMCACHED: ${{ false }} 27 SLOW_TESTS: 'external-http,media,restapi' 27 28 28 29 jobs: … … 67 68 # - todo: Configure Slack notifications for failing tests. 68 69 test-php: 69 name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix. memcached && ' with memcached' || '' }} on ${{ matrix.os }}70 name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.split_slow && ' slow tests' || '' }} ${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }} 70 71 runs-on: ${{ matrix.os }} 71 72 strategy: … … 75 76 os: [ ubuntu-latest ] 76 77 memcached: [ false ] 78 split_slow: [ false ] 77 79 multisite: [ false, true ] 78 80 include: 81 # Additional "slow" jobs for PHP 5.6. 82 - php: '5.6.20' 83 os: ubuntu-latest 84 memcached: false 85 multisite: false 86 split_slow: true 87 - php: '5.6.20' 88 os: ubuntu-latest 89 memcached: false 90 multisite: true 91 split_slow: true 79 92 # Include jobs for PHP 7.4 with memcached. 80 93 - php: '7.4' … … 190 203 run: npm run env:install 191 204 205 - name: Run slow PHPUnit tests 206 if: ${{ matrix.split_slow }} 207 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ${{ env.SLOW_TESTS }} 208 209 - name: Run PHPUnit tests for single site excluding slow tests 210 if: ${{ matrix.php < '7.0' && ! matrix.split_slow && ! matrix.multisite }} 211 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-required 212 213 - name: Run PHPUnit tests for Multisite excluding slow tests 214 if: ${{ matrix.php < '7.0' && ! matrix.split_slow && matrix.multisite }} 215 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-excluded,oembed-headers 216 192 217 - name: Run PHPUnit tests 218 if: ${{ matrix.php >= '7.0' }} 193 219 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} 194 220 195 221 - name: Run AJAX tests 222 if: ${{ ! matrix.split_slow }} 196 223 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax 197 224 198 225 - name: Run ms-files tests as a multisite install 199 if: ${{ matrix.multisite }}226 if: ${{ matrix.multisite && ! matrix.split_slow }} 200 227 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --group ms-files 201 228 202 229 - name: Run external HTTP tests 203 if: ${{ ! matrix.multisite }}230 if: ${{ ! matrix.multisite && ! matrix.split_slow }} 204 231 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group external-http 205 232 206 233 # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist. 207 234 - name: Run (xDebug) tests 235 if: ${{ ! matrix.split_slow }} 208 236 run: LOCAL_PHP_XDEBUG=true npm run test:${{ env.PHPUNIT_SCRIPT }} -- -v --group xdebug --exclude-group __fakegroup__ 209 237
Note: See TracChangeset
for help on using the changeset viewer.