From 77ed29b8179bc79a042533ef2439435779649cba Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 29 Jun 2023 23:01:48 +0000 Subject: [PATCH] Build/Test Tools: Run E2E tests with and without `SCRIPT_DEBUG` enabled. This adds a matrix to the e2e test runs on GitHub Actions so the tests run both with and without `SCRIPT_DEBUG` enabled. This allows us to catch scenarios where the minified and non-minified files may differ. Props Clorith, joemcgill Fixes #58661 git-svn-id: https://develop.svn.wordpress.org/trunk@56113 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/end-to-end-tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index ce9331e93d..0090a7a97e 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -56,6 +56,10 @@ jobs: contents: read timeout-minutes: 20 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} + strategy: + fail-fast: false + matrix: + LOCAL_SCRIPT_DEBUG: [ true, false ] steps: - name: Configure environment variables @@ -105,6 +109,8 @@ jobs: docker-compose run --rm php locale -a - name: Install WordPress + env: + LOCAL_SCRIPT_DEBUG: ${{ matrix.LOCAL_SCRIPT_DEBUG }} run: npm run env:install - name: Run E2E tests