Changeset 51736
- Timestamp:
- 09/07/2021 07:22:57 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/phpunit-tests.yml
r51670 r51736 192 192 - name: Run slow PHPUnit tests 193 193 if: ${{ matrix.split_slow }} 194 run: n pm run test:php-composer ----verbose -c ${{ env.PHPUNIT_CONFIG }} --group ${{ env.SLOW_TESTS }}194 run: node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ${{ env.SLOW_TESTS }} 195 195 196 196 - name: Run PHPUnit tests for single site excluding slow tests 197 197 if: ${{ matrix.php < '7.0' && ! matrix.split_slow && ! matrix.multisite }} 198 run: n pm run test:php-composer ----verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-required198 run: node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-required 199 199 200 200 - name: Run PHPUnit tests for Multisite excluding slow tests 201 201 if: ${{ matrix.php < '7.0' && ! matrix.split_slow && matrix.multisite }} 202 run: n pm run test:php-composer ----verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-excluded,oembed-headers202 run: node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-excluded,oembed-headers 203 203 204 204 - name: Run PHPUnit tests 205 205 if: ${{ matrix.php >= '7.0' }} 206 206 continue-on-error: ${{ matrix.php == '8.1' }} 207 run: n pm run test:php-composer ----verbose -c ${{ env.PHPUNIT_CONFIG }}207 run: node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} 208 208 209 209 - name: Run AJAX tests 210 210 if: ${{ ! matrix.split_slow }} 211 211 continue-on-error: ${{ matrix.php == '8.1' }} 212 run: n pm run test:php-composer ----verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax212 run: node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax 213 213 214 214 - name: Run ms-files tests as a multisite install 215 215 if: ${{ matrix.multisite && ! matrix.split_slow }} 216 216 continue-on-error: ${{ matrix.php == '8.1' }} 217 run: n pm run test:php-composer ----verbose -c tests/phpunit/multisite.xml --group ms-files217 run: node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml --group ms-files 218 218 219 219 - name: Run external HTTP tests 220 220 if: ${{ ! matrix.multisite && ! matrix.split_slow }} 221 221 continue-on-error: ${{ matrix.php == '8.1' }} 222 run: n pm run test:php-composer ----verbose -c phpunit.xml.dist --group external-http222 run: node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http 223 223 224 224 # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist. … … 226 226 if: ${{ ! matrix.split_slow }} 227 227 continue-on-error: ${{ matrix.php == '8.1' }} 228 run: LOCAL_PHP_XDEBUG=true n pm run test:php-composer ---v --group xdebug --exclude-group __fakegroup__228 run: LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run --rm phpunit php ./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__ 229 229 230 230 - name: Ensure version-controlled files are not modified or deleted -
trunk/tools/local-env/scripts/install.js
r51685 r51736 22 22 23 23 install_wp_importer(); 24 25 install_composer_dependencies();26 24 27 25 // Read in wp-tests-config-sample.php, edit it to work with our config, then write it to wp-tests-config.php. … … 60 58 execSync( `docker-compose exec -T php git clone https://github.com/WordPress/wordpress-importer.git ${testPluginDirectory} --depth=1`, { stdio: 'inherit' } ); 61 59 } 62 63 /**64 * Installs the Composer package dependencies within the Docker environment.65 */66 function install_composer_dependencies() {67 execSync( `docker-compose run -T php composer update -W`, { stdio: 'inherit' } );68 }
Note: See TracChangeset
for help on using the changeset viewer.