WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/12/2021 06:18:45 PM (8 months ago)
Author:
desrosj
Message:

Build/Test Tools: Restore automated testing in the 5.2 branch.

This commit merges the workflow files required to run automated testing on GitHub Actions.

In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.

Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 5.2 branch.
See #50401.

Location:
branches/5.2
Files:
1 added
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/.github/workflows/javascript-tests.yml

    r49162 r50305  
    55    branches:
    66      - master
    7       - '*.*'
     7      # JavaScript testing was introduced in WordPress 3.8.
     8      - '3.[89]'
     9      - '[4-9].[0-9]'
     10    tags:
     11      - '3.[89]*'
     12      - '[4-9].[0-9]*'
    813  pull_request:
    914
     
    1217  #
    1318  # Performs the following steps:
    14   # - Cancels all previous workflow runs that have not completed.
     19  # - Cancels all previous workflow runs for pull requests that have not completed.
    1520  # - Checks out the repository.
    1621  # - Logs debug information about the runner container.
    17   # - Installs NodeJS 12 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)
     22  # - Installs NodeJS 14.
    1823  # - Sets up caching for NPM.
    1924  # - Logs updated debug information.
    20   # _ Installs NPM dependencies.
     25  # _ Installs NPM dependencies using install-changed to hash the `package.json` file.
    2126  # - Run the WordPress QUnit tests.
    2227  # - todo: Configure Slack notifications for failing tests.
     
    2429    name: QUnit Tests
    2530    runs-on: ubuntu-latest
     31    if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     32
    2633    steps:
    27       - name: Cancel previous runs of this workflow
     34      - name: Cancel previous runs of this workflow (pull requests only)
     35        if: ${{ github.event_name == 'pull_request' }}
    2836        uses: styfle/cancel-workflow-action@0.5.0
    2937        with:
     
    4351        uses: actions/setup-node@v1
    4452        with:
    45           node-version: 12
     53          node-version: 14
    4654
    4755      - name: Cache NodeJS modules
     
    6270
    6371      - name: Install Dependencies
    64         run: npm ci
     72        run: npx install-changed --install-command="npm ci"
    6573
    6674      - name: Run QUnit tests
Note: See TracChangeset for help on using the changeset viewer.