WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/12/2021 08:49:41 PM (10 months ago)
Author:
desrosj
Message:

Build/Test Tools: Restore automated testing in the 3.9 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 3.9 branch.
See #50401.

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

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/.github/workflows/verify-npm-on-windows.yml

    r49162 r50322  
    55    branches:
    66      - master
    7       - '*.*'
     7      - '3.[7-9]'
     8      - '[4-9].[0-9]'
    89  pull_request:
     10
     11env:
     12  PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}
    913
    1014jobs:
     
    1216  #
    1317  # Performs the following steps:
    14   # - Cancels all previous workflow runs that have not completed.
     18  # - Cancels all previous workflow runs for pull requests that have not completed.
    1519  # - Checks out the repository.
    1620  # - 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)
     21  # - Installs NodeJS 14.
    1822  # - Sets up caching for NPM.
    19   # _ Installs NPM dependencies.
     23  # _ Installs NPM dependencies using install-changed to hash the `package.json` file.
    2024  # - Builds WordPress to run from the `build` directory.
    2125  test-npm:
    2226    name: Tests NPM on Windows
    2327    runs-on: windows-latest
     28    if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     29
    2430    steps:
    25       - name: Cancel previous runs of this workflow
     31      - name: Cancel previous runs of this workflow (pull requests only)
     32        if: ${{ github.event_name == 'pull_request' }}
    2633        uses: styfle/cancel-workflow-action@0.5.0
    2734        with:
     
    4249        uses: actions/setup-node@v1
    4350        with:
    44           node-version: 12
     51          node-version: 14
    4552
    4653      - name: Get NPM cache directory
     
    5966
    6067      - name: Install Dependencies
    61         run: npm ci
     68        run: npx install-changed --install-command="npm ci"
    6269
    6370      - name: Build WordPress
Note: See TracChangeset for help on using the changeset viewer.