Make WordPress Core


Ignore:
Timestamp:
02/17/2023 07:51:16 AM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Backport updates to GitHub Actions.

This backports updates to GitHub Actions workflows required to address deprecated notices related to save-output and set-output.

Merges [54650], [54750], [54851], [54852], [54856], and [55152] to the 6.1 branch.
See #56882, #56820.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.1/.github/workflows/test-npm.yml

    r54680 r55357  
    1 name: Test NPM
     1name: Test npm
    22
    33on:
     
    1616      - '[4-9].[0-9]'
    1717    paths:
    18       # These files configure NPM. Changes could affect the outcome.
     18      # These files configure npm. Changes could affect the outcome.
    1919      - 'package*.json'
    20       # JavaScript files are built using NPM.
     20      # JavaScript files are built using npm.
    2121      - '**.js'
    22       # CSS and SCSS files are built using NPM.
     22      # CSS and SCSS files are built using npm.
    2323      - '**.scss'
    2424      - '**.css'
     
    3838
    3939jobs:
    40   # Verifies that installing NPM dependencies and building WordPress works as expected.
     40  # Verifies that installing npm dependencies and building WordPress works as expected.
    4141  #
    4242  # Performs the following steps:
    4343  # - Checks out the repository.
     44  # - Sets up Node.js.
    4445  # - Logs debug information about the GitHub Action runner.
    45   # - Installs NodeJS.
    46   # _ Installs NPM dependencies.
     46  # - Installs npm dependencies.
    4747  # - Builds WordPress to run from the `build` directory.
    4848  # - Cleans up after building WordPress to the `build` directory.
     
    5252  # - Ensures version-controlled files are not modified or deleted.
    5353  test-npm:
    54     name: Test NPM on ${{ matrix.os }}
     54    name: Test npm on ${{ matrix.os }}
    5555    runs-on: ${{ matrix.os }}
    5656    timeout-minutes: 20
     
    6363    steps:
    6464      - name: Checkout repository
    65         uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
     65        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
     66
     67      - name: Set up Node.js
     68        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
     69        with:
     70          node-version-file: '.nvmrc'
     71          cache: npm
    6672
    6773      - name: Log debug information
     
    7379          svn --version
    7480
    75       - name: Install NodeJS
    76         uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    77         with:
    78           node-version-file: '.nvmrc'
    79           cache: npm
    80 
    81       - name: Install Dependencies
     81      - name: Install npm Dependencies
    8282        run: npm ci
    8383
     
    100100        run: git diff --exit-code
    101101
    102   # Verifies that installing NPM dependencies and building WordPress works as expected on MacOS.
     102  # Verifies that installing npm dependencies and building WordPress works as expected on MacOS.
    103103  #
    104104  # This is separate from the job above in order to use stricter conditions about when to run.
    105105  # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate.
    106106  #
     107  # The `matrix` and `runner` contexts are not available for use within `if` expressions. So there is
     108  # currently no way to determine the OS being used on a given job.
     109  # See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability.
     110  #
    107111  # Performs the following steps:
    108112  # - Checks out the repository.
     113  # - Sets up Node.js.
    109114  # - Logs debug information about the GitHub Action runner.
    110   # - Installs NodeJS.
    111   # _ Installs NPM dependencies.
     115  # - Installs npm dependencies.
    112116  # - Builds WordPress to run from the `build` directory.
    113117  # - Cleans up after building WordPress to the `build` directory.
     
    117121  # - Ensures version-controlled files are not modified or deleted.
    118122  test-npm-macos:
    119     name: Test NPM on MacOS
     123    name: Test npm on MacOS
    120124    runs-on: macos-latest
    121125    timeout-minutes: 30
     
    123127    steps:
    124128      - name: Checkout repository
    125         uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
     129        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
     130
     131      - name: Set up Node.js
     132        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
     133        with:
     134          node-version-file: '.nvmrc'
     135          cache: npm
    126136
    127137      - name: Log debug information
     
    133143          svn --version
    134144
    135       - name: Install NodeJS
    136         uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    137         with:
    138           node-version-file: '.nvmrc'
    139           cache: npm
    140 
    141       - name: Install Dependencies
     145      - name: Install npm Dependencies
    142146        run: npm ci
    143147
     
    189193    steps:
    190194      - name: Dispatch workflow run
    191         uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
     195        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
    192196        with:
    193197          retries: 2
Note: See TracChangeset for help on using the changeset viewer.