Make WordPress Core


Ignore:
Timestamp:
11/16/2022 07:32:57 PM (22 months ago)
Author:
desrosj
Message:

Build/Test Tools: Various minor GitHub Action improvements.

This applies several types of improvements to GitHub Action workflows:

  • Updates to inline documentation to ensure accuracy.
  • Removal of repetitive or unnecessary debug logging.
  • Reorganization of some steps to have configuration steps towards the beginning of jobs.
  • Step name updates for consistency across workflows.

Props desrosj, jrf.
See #56793.

File:
1 edited

Legend:

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

    r54674 r54851  
    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 Node.js.
    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.
     
    6565        uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
    6666
     67      - name: Set up Node.js
     68        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
     69        with:
     70          node-version-file: '.nvmrc'
     71          cache: npm
     72
    6773      - name: Log debug information
    6874        run: |
     
    7379          svn --version
    7480
    75       - name: Install Node.js
    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
     
    107107  # Performs the following steps:
    108108  # - Checks out the repository.
     109  # - Sets up Node.js.
    109110  # - Logs debug information about the GitHub Action runner.
    110   # - Installs Node.js.
    111   # _ Installs npm dependencies.
     111  # - Installs npm dependencies.
    112112  # - Builds WordPress to run from the `build` directory.
    113113  # - Cleans up after building WordPress to the `build` directory.
     
    125125        uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
    126126
     127      - name: Set up Node.js
     128        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
     129        with:
     130          node-version-file: '.nvmrc'
     131          cache: npm
     132
    127133      - name: Log debug information
    128134        run: |
     
    133139          svn --version
    134140
    135       - name: Install Node.js
    136         uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    137         with:
    138           node-version-file: '.nvmrc'
    139           cache: npm
    140 
    141       - name: Install Dependencies
     141      - name: Install npm Dependencies
    142142        run: npm ci
    143143
Note: See TracChangeset for help on using the changeset viewer.