Make WordPress Core

Changeset 53596


Ignore:
Timestamp:
06/30/2022 04:25:47 PM (20 months 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:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/.github/workflows/coding-standards.yml

    r52233 r53596  
    6464    steps:
    6565      - name: Checkout repository
    66         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     66        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    6767
    6868      - name: Set up PHP
    69         uses: shivammathur/setup-php@ac7d3d7f84d81a029c20ab72d60264bdb7535831 # v2.15.0
     69        uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
    7070        with:
    7171          php-version: '7.4'
     
    8585
    8686      - name: Cache PHPCS scan cache
    87         uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
     87        uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
    8888        with:
    8989          path: .cache/phpcs.json
     
    9191
    9292      - name: Install Composer dependencies
    93         uses: ramsey/composer-install@a7320a0581dcd0432930c48a0e7ced67e6ec17e8 # v1.3.0
     93        uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
    9494        with:
    9595          composer-options: "--no-progress --no-ansi --no-interaction"
     
    116116  # Performs the following steps:
    117117  # - Checks out the repository.
    118   # - Logs debug information about the runner container.
    119   # - Installs NodeJS 14.
     118  # - Logs debug information about the GitHub Action runner.
     119  # - Installs NodeJS.
    120120  # - Logs updated debug information.
    121   # _ Installs NPM dependencies using install-changed to hash the `package.json` file.
     121  # _ Installs NPM dependencies.
    122122  # - Run the WordPress JSHint checks.
    123123  # - Ensures version-controlled files are not modified or deleted.
     
    132132    steps:
    133133      - name: Checkout repository
    134         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     134        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    135135
    136136      - name: Log debug information
     
    142142
    143143      - name: Install NodeJS
    144         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     144        uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
    145145        with:
    146           node-version: 14
     146          node-version-file: '.nvmrc'
    147147          cache: npm
    148148
  • branches/5.9/.github/workflows/end-to-end-tests.yml

    r52233 r53596  
    22
    33on:
    4   # The end to end test suite was introduced in WordPress 5.3.
     4  # The end-to-end test suite was introduced in WordPress 5.3.
    55  push:
    66    branches:
     
    3232  #
    3333  # Performs the following steps:
    34   # - Set environment variables.
     34  # - Sets environment variables.
    3535  # - Checks out the repository.
    36   # - Logs debug information about the runner container.
    37   # - Installs NodeJS 14.
    38   # _ Installs NPM dependencies using install-changed to hash the `package.json` file.
     36  # - Logs debug information about the GitHub Action runner.
     37  # - Installs NodeJS.
     38  # _ Installs NPM dependencies.
    3939  # - Builds WordPress to run from the `build` directory.
    4040  # - Starts the WordPress Docker container.
     
    5858
    5959      - name: Checkout repository
    60         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     60        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    6161
    6262      - name: Log debug information
     
    7272
    7373      - name: Install NodeJS
    74         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     74        uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
    7575        with:
    76           node-version: 14
     76          node-version-file: '.nvmrc'
    7777          cache: npm
    7878
  • branches/5.9/.github/workflows/javascript-tests.yml

    r52233 r53596  
    4343  # Performs the following steps:
    4444  # - Checks out the repository.
    45   # - Logs debug information about the runner container.
    46   # - Installs NodeJS 14.
     45  # - Logs debug information about the GitHub Action runner.
     46  # - Installs NodeJS.
    4747  # - Logs updated debug information.
    48   # _ Installs NPM dependencies using install-changed to hash the `package.json` file.
     48  # _ Installs NPM dependencies.
    4949  # - Run the WordPress QUnit tests.
    5050  # - Ensures version-controlled files are not modified or deleted.
     
    5757    steps:
    5858      - name: Checkout repository
    59         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     59        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    6060
    6161      - name: Log debug information
     
    6767
    6868      - name: Install NodeJS
    69         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     69        uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
    7070        with:
    71           node-version: 14
     71          node-version-file: '.nvmrc'
    7272          cache: npm
    7373
  • branches/5.9/.github/workflows/php-compatibility.yml

    r52233 r53596  
    5858    steps:
    5959      - name: Checkout repository
    60         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     60        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    6161
    6262      - name: Set up PHP
    63         uses: shivammathur/setup-php@ac7d3d7f84d81a029c20ab72d60264bdb7535831 # v2.15.0
     63        uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
    6464        with:
    6565          php-version: '7.4'
     
    7979
    8080      - name: Cache PHP compatibility scan cache
    81         uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
     81        uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
    8282        with:
    8383          path: .cache/phpcompat.json
     
    8585
    8686      - name: Install Composer dependencies
    87         uses: ramsey/composer-install@a7320a0581dcd0432930c48a0e7ced67e6ec17e8 # v1.3.0
     87        uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
    8888        with:
    8989          composer-options: "--no-progress --no-ansi --no-interaction"
  • branches/5.9/.github/workflows/phpunit-tests.yml

    r52233 r53596  
    3939  #
    4040  # Performs the following steps:
    41   # - Set environment variables.
     41  # - Sets environment variables.
    4242  # - Sets up the environment variables needed for testing with memcached (if desired).
    43   # - Installs NodeJS 14.
     43  # - Installs NodeJS.
    4444  # - Installs NPM dependencies
    4545  # - Configures caching for Composer.
    46   # - Installs Composer dependencies (if desired).
    47   # - Logs Docker debug information (about both the Docker installation within the runner).
     46  # - Installs Composer dependencies.
     47  # - Logs Docker debug information (about the Docker installation within the runner).
    4848  # - Starts the WordPress Docker container.
    49   # - Starts the memcached server after the Docker network has been created (if desired).
    50   # - Logs WordPress Docker container debug information.
    51   # - Logs debug general information.
     49  # - Starts the Memcached server after the Docker network has been created (if desired).
     50  # - Logs general debug information about the runner.
    5251  # - Logs the running Docker containers.
     52  # - Logs debug information from inside the WordPress Docker container.
    5353  # - Logs debug information about what's installed within the WordPress Docker containers.
    5454  # - Install WordPress within the Docker container.
     
    111111
    112112      - name: Checkout repository
    113         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     113        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    114114
    115115      - name: Install NodeJS
    116         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     116        uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
    117117        with:
    118           node-version: 14
     118          node-version-file: '.nvmrc'
    119119          cache: npm
    120120
     
    133133
    134134      - name: Cache Composer dependencies
    135         uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
     135        uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
    136136        env:
    137137          cache-name: cache-composer-dependencies
     
    232232      - name: Checkout the WordPress Test Reporter
    233233        if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
    234         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
     234        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    235235        with:
    236236          repository: 'WordPress/phpunit-test-runner'
  • 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.