Make WordPress Core


Ignore:
Timestamp:
07/06/2021 06:36:46 PM (4 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Add assertions to ensure version-controlled files are not modified during CI, and fix the grunt clean command.

Some tests and some commands that run during the build steps modify files that are under version control. This adds assertions to ensure that these files don't remain in a modified state after the test runs on CI.

This also fixes the grunt clean command which erroneously deletes script-loader-packages.php. This file is re-populated during the build, but deleting it during the clean is undesirable.

Fixes #53606

File:
1 edited

Legend:

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

    r51341 r51355  
    4646  # - Install WordPress within the Docker container.
    4747  # - Run the E2E tests.
     48  # - Ensures version-controlled files are not modified or deleted.
    4849  # - todo: Configure Slack notifications for failing tests.
    4950  e2e-tests:
     
    114115      - name: Run E2E tests
    115116        run: npm run test:e2e
     117
     118      - name: Ensure version-controlled files are not modified or deleted
     119        run: git diff --exit-code
Note: See TracChangeset for help on using the changeset viewer.