Make WordPress Core


Ignore:
Timestamp:
07/06/2021 07:12:23 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.

Merges [51355] to the 5.8 branch.

Fixes #53606

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/.github/workflows/phpunit-tests.yml

    r50930 r51357  
    5757  # - Install WordPress within the Docker container.
    5858  # - Run the PHPUnit tests.
     59  # - Ensures version-controlled files are not modified or deleted.
    5960  # - Checks out the WordPress Test reporter repository.
    6061  # - Reconnect the directory to the Git repository.
     
    231232        run: LOCAL_PHP_XDEBUG=true npm run test:${{ env.PHPUNIT_SCRIPT }} -- -v --group xdebug --exclude-group __fakegroup__
    232233
     234      - name: Ensure version-controlled files are not modified or deleted
     235        run: git diff --exit-code
     236
    233237      - name: Checkout the WordPress Test Reporter
    234238        if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }}
Note: See TracChangeset for help on using the changeset viewer.