From 668581d0f3be00c0babe6929f97ecce654507843 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Thu, 10 Dec 2020 15:28:09 +0000 Subject: [PATCH] Build/Test Tools: Inline documentation updates for the PHPUnit workflow. See #50401. git-svn-id: https://develop.svn.wordpress.org/trunk@49784 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/phpunit-tests.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 80c05f88ad..2a4ae0c864 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -26,7 +26,7 @@ jobs: # - Checks out the repository. # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests). # - Logs debug information about the runner container. - # - Installs NodeJS 12 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches). + # - Installs NodeJS 14. # - Sets up caching for NPM. # _ Installs NPM dependencies using install-changed to hash the `package.json` file. # - Builds WordPress to run from the `build` directory. @@ -105,7 +105,7 @@ jobs: # - Sets up the environment variables needed for testing with memcached (if desired). # - Downloads the built WordPress artifact from the previous job. # - Unzips the artifact. - # - Installs NodeJS 12 (todo: install the version of NPM specified in the `nvmrc` file to support older branches) + # - Installs NodeJS 14. # - Sets up caching for NPM. # _ Installs NPM dependencies using install-changed to hash the `package.json` file. # - Configures caching for Composer. @@ -119,7 +119,8 @@ jobs: # - Logs debug information about what's installed within the WordPress Docker containers. # - Install WordPress within the Docker container. # - Run the PHPUnit tests. - # - Reports test results to the Distributed Hosting Tests. + # - Checks out the WordPress Test reporter repository. + # - Submit the test results to the WordPress.org host test results. # - todo: Configure Slack notifications for failing tests. test-php: name: ${{ matrix.php }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }} @@ -271,15 +272,15 @@ jobs: if: ${{ env.LOCAL_PHP != '8.0-fpm' }} run: LOCAL_PHP_XDEBUG=true npm run test:php -- -v --group xdebug --exclude-group __fakegroup__ - - name: WordPress Test Reporter + - name: Checkout the WordPress Test Reporter if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }} uses: actions/checkout@v2 with: repository: 'WordPress/phpunit-test-runner' path: 'test-runner' - - name: WordPress Test Reporter + - name: Submit test results to the WordPress.org host test results if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }} env: - WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} + WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}" run: docker-compose run --rm -e "$WPT_REPORT_API_KEY" -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php