Make WordPress Core


Ignore:
Timestamp:
06/30/2022 04:25:47 PM (2 years ago)
Author:
desrosj
Message:

Build/Test Tools: Update 3rd party GitHub Actions.

This updates the following GitHub Actions to the latest versions:

  • actions/checkout
  • actions/cache
  • actions/github-script
  • actions/setup-node
  • codecov/codecov-action
  • ramsey/composer-install
  • shivammathur/setup-php
  • slackapi/slack-github-action

Various inline documentation updates are also included.

Merges [53112], [53581], [53582], and [53592] to the 5.9 branch.
See #55652.

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/.github/workflows/test-npm.yml

    r52233 r53596  
    3939  # Performs the following steps:
    4040  # - Checks out the repository.
    41   # - Logs debug information about the runner container.
    42   # - Installs NodeJS 14.
    43   # _ Installs NPM dependencies using install-changed to hash the `package.json` file.
     41  # - Logs debug information about the GitHub Action runner.
     42  # - Installs NodeJS.
     43  # _ Installs NPM dependencies.
    4444  # - Builds WordPress to run from the `build` directory.
    4545  # - Cleans up after building WordPress to the `build` directory.
     
    6060    steps:
    6161      - name: Checkout repository
    62         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     62        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    6363
    6464      - name: Log debug information
     
    7171
    7272      - name: Install NodeJS
    73         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     73        uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
    7474        with:
    75           node-version: 14
     75          node-version-file: '.nvmrc'
    7676          cache: npm
    7777
     
    9999  # Verifies that installing NPM dependencies and building WordPress works as expected on MacOS.
    100100  #
    101   # This is a separate job in order to that more strict conditions can be used.
     101  # This is separate from the job above in order to use stricter conditions about when to run.
     102  # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate.
    102103  #
    103104  # Performs the following steps:
    104105  # - Checks out the repository.
    105   # - Logs debug information about the runner container.
    106   # - Installs NodeJS 14.
    107   # _ Installs NPM dependencies using install-changed to hash the `package.json` file.
     106  # - Logs debug information about the GitHub Action runner.
     107  # - Installs NodeJS.
     108  # _ Installs NPM dependencies.
    108109  # - Builds WordPress to run from the `build` directory.
    109110  # - Cleans up after building WordPress to the `build` directory.
     
    119120    steps:
    120121      - name: Checkout repository
    121         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     122        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    122123
    123124      - name: Log debug information
     
    130131
    131132      - name: Install NodeJS
    132         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     133        uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
    133134        with:
    134           node-version: 14
     135          node-version-file: '.nvmrc'
    135136          cache: npm
    136137
Note: See TracChangeset for help on using the changeset viewer.