Make WordPress Core


Ignore:
Timestamp:
03/25/2021 07:59:44 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Backport several GitHub Action improvements and dependency updates.

This backports several GitHub Action improvements and devDependency updates to the 5.7 branch.

Backports [50432,50435-50436,50479,50485-50487,50545,50579] to the 5.7 branch.
See #52667, #52643, #52658, #52660, #52624, #52625.

Location:
branches/5.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.7

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

    r50387 r50584  
    22
    33on:
     4  # JavaScript testing was introduced in WordPress 3.8.
    45  push:
    56    branches:
    67      - master
    7       # JavaScript testing was introduced in WordPress 3.8.
     8      - trunk
    89      - '3.[89]'
    910      - '[4-9].[0-9]'
     
    1213      - '[4-9].[0-9]*'
    1314  pull_request:
     15    branches:
     16      - master
     17      - trunk
     18      - '3.[89]'
     19      - '[4-9].[0-9]'
     20    paths:
     21      # Any change to a JavaScript file should run tests.
     22      - '**.js'
     23      # These files configure NPM. Changes could affect the outcome.
     24      - 'package*.json'
     25      # This file configures ESLint. Changes could affect the outcome.
     26      - '.eslintignore'
     27      # This file configures JSHint. Changes could affect the outcome.
     28      - '.jshintrc'
     29      # Any change to the QUnit directory should run tests.
     30      - 'tests/qunit/**'
     31      # Changes to workflow files should always verify all workflows are successful.
     32      - '.github/workflows/*.yml'
    1433
    1534jobs:
     
    3453      - name: Cancel previous runs of this workflow (pull requests only)
    3554        if: ${{ github.event_name == 'pull_request' }}
    36         uses: styfle/cancel-workflow-action@0.8.0
    37         with:
    38           access_token: ${{ github.token }}
     55        uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d # v0.8.0
    3956
    4057      - name: Checkout repository
    41         uses: actions/checkout@v2
     58        uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
    4259
    4360      - name: Log debug information
     
    4966
    5067      - name: Install NodeJS
    51         uses: actions/setup-node@v2
     68        uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
    5269        with:
    5370          node-version: 14
    5471
    5572      - name: Cache NodeJS modules
    56         uses: actions/cache@v2
     73        uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
    5774        env:
    5875          cache-name: cache-node-modules
     
    6178          path: ~/.npm
    6279          key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
    63           restore-keys: |
    64             ${{ runner.os }}-npm-
    6580
    6681      - name: Log debug information
     
    7085
    7186      - name: Install Dependencies
    72         run: npx install-changed --install-command="npm ci"
     87        run: npm ci
    7388
    7489      - name: Run QUnit tests
Note: See TracChangeset for help on using the changeset viewer.