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/coding-standards.yml

    r50387 r50584  
    22
    33on:
     4  # JSHint was introduced in WordPress 3.8.
     5  # PHPCS checking was introduced in WordPress 5.1.
    46  push:
    57    branches:
    68      - master
    7       # JSHint was introduced in WordPress 3.8.
    8       # PHPCS checking was introduced in WordPress 5.1.
     9      - trunk
    910      - '3.[89]'
    1011      - '[4-9].[0-9]'
     
    1314      - '[4-9].[0-9]*'
    1415  pull_request:
     16    branches:
     17      - master
     18      - trunk
     19      - '3.[89]'
     20      - '[4-9].[0-9]'
     21    paths:
     22      # Any change to a PHP or JavaScript file should run checks.
     23      - '**.js'
     24      - '**.php'
     25      # These files configure NPM. Changes could affect the outcome.
     26      - 'package*.json'
     27      # These files configure Composer. Changes could affect the outcome.
     28      - 'composer.*'
     29      # This file configures JSHint. Changes could affect the outcome.
     30      - '.jshintrc'
     31      # This file configures PHPCS. Changes could affect the outcome.
     32      - 'phpcs.xml.dist'
     33      # Changes to workflow files should always verify all workflows are successful.
     34      - '.github/workflows/*.yml'
    1535
    1636jobs:
     
    3656    steps:
    3757      - name: Checkout repository
    38         uses: actions/checkout@v2
     58        uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
    3959
    4060      - name: Set up PHP
    41         uses: shivammathur/setup-php@v2
     61        uses: shivammathur/setup-php@afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.0
    4262        with:
    4363          php-version: '7.4'
     
    5171
    5272      - name: Install Composer dependencies
    53         uses: ramsey/composer-install@v1
     73        uses: ramsey/composer-install@92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.0
    5474        with:
    5575          composer-options: "--no-progress --no-ansi --no-interaction"
     
    89109    steps:
    90110      - name: Checkout repository
    91         uses: actions/checkout@v2
     111        uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
    92112
    93113      - name: Log debug information
     
    99119
    100120      - name: Install NodeJS
    101         uses: actions/setup-node@v2
     121        uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
    102122        with:
    103123          node-version: 14
    104124
    105125      - name: Cache NodeJS modules
    106         uses: actions/cache@v2
     126        uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
    107127        env:
    108128          cache-name: cache-node-modules
     
    111131          path: ~/.npm
    112132          key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
    113           restore-keys: |
    114             ${{ runner.os }}-npm-
    115133
    116134      - name: Log debug information
     
    120138
    121139      - name: Install Dependencies
    122         run: npx install-changed --install-command="npm ci"
     140        run: npm ci
    123141
    124142      - name: Run JSHint
Note: See TracChangeset for help on using the changeset viewer.