Changeset 56141 for trunk/.github/workflows/phpunit-tests.yml
- Timestamp:
- 07/05/2023 05:39:55 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/phpunit-tests.yml
r55717 r56141 34 34 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 35 35 LOCAL_PHP_MEMCACHED: ${{ false }} 36 SLOW_TESTS: 'external-http,media,restapi'37 36 38 37 jobs: … … 57 56 # - Submit the test results to the WordPress.org host test results. 58 57 test-php: 59 name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix. split_slow && ' slow tests' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }}58 name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }} 60 59 runs-on: ${{ matrix.os }} 61 60 permissions: … … 66 65 fail-fast: false 67 66 matrix: 68 php: [ ' 5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]67 php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] 69 68 os: [ ubuntu-latest ] 70 69 memcached: [ false ] 71 split_slow: [ false ]72 70 multisite: [ false, true ] 73 71 include: 74 # Additional "slow" jobs for PHP 5.6.75 - php: '5.6'76 os: ubuntu-latest77 memcached: false78 multisite: false79 split_slow: true80 - php: '5.6'81 os: ubuntu-latest82 memcached: false83 multisite: true84 split_slow: true85 72 # Include jobs for PHP 7.4 with memcached. 86 73 - php: '7.4' … … 175 162 run: npm run env:install 176 163 177 - name: Run slow PHPUnit tests178 if: ${{ matrix.split_slow }}179 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ${{ env.SLOW_TESTS }}180 181 - name: Run PHPUnit tests for single site excluding slow tests182 if: ${{ matrix.php < '7.0' && ! matrix.split_slow && ! matrix.multisite }}183 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-required184 185 - name: Run PHPUnit tests for Multisite excluding slow tests186 if: ${{ matrix.php < '7.0' && ! matrix.split_slow && matrix.multisite }}187 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-excluded,oembed-headers188 189 164 - name: Run PHPUnit tests 190 if: ${{ matrix.php >= '7.0' }}191 165 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} 192 166 193 167 - name: Run AJAX tests 194 if: ${{ ! matrix.split_slow }}195 168 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax 196 169 197 170 - name: Run ms-files tests as a multisite install 198 if: ${{ matrix.multisite && ! matrix.split_slow}}171 if: ${{ matrix.multisite }} 199 172 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml --group ms-files 200 173 201 174 - name: Run external HTTP tests 202 if: ${{ ! matrix.multisite && ! matrix.split_slow}}175 if: ${{ ! matrix.multisite }} 203 176 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http 204 177 205 178 # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist. 206 179 - name: Run (Xdebug) tests 207 if: ${{ ! matrix.split_slow }}208 180 run: LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__ 209 181
Note: See TracChangeset
for help on using the changeset viewer.