Make WordPress Core

Changeset 49783


Ignore:
Timestamp:
12/10/2020 02:18:12 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Enable reporting of results to WordPress.org.

This configures reporting of the test results to the WordPress.org Host Test Results in the new GitHub Actions workflow for PHPUnit testing.

See https://make.wordpress.org/hosting/test-results/

Props mikeschroder, dd32.
See #50401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests.yml

    r49782 r49783  
    273273
    274274      - name: WordPress Test Reporter
    275         if: ${{ matrix.report }}
     275        if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }}
    276276        uses: actions/checkout@v2
    277277        with:
    278278          repository: 'WordPress/phpunit-test-runner'
    279279          path: 'test-runner'
    280         # TODO: Configure hidden keys to successfully report test results.
    281         # 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
     280
     281      - name: WordPress Test Reporter
     282        if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }}
     283        env:
     284          WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }}
     285        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
Note: See TracChangeset for help on using the changeset viewer.