Make WordPress Core


Ignore:
Timestamp:
11/16/2022 07:32:57 PM (20 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/end-to-end-tests.yml

    r54674 r54851  
    3636  # - Sets environment variables.
    3737  # - Checks out the repository.
     38  # - Sets up Node.js.
    3839  # - Logs debug information about the GitHub Action runner.
    39   # - Installs Node.js.
    40   # _ Installs npm dependencies.
     40  # - Installs npm dependencies.
    4141  # - Builds WordPress to run from the `build` directory.
    4242  # - Starts the WordPress Docker container.
    43   # - Logs general debug information.
    4443  # - Logs the running Docker containers.
    4544  # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container).
     
    6261        uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
    6362
     63      - name: Set up Node.js
     64        uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
     65        with:
     66          node-version-file: '.nvmrc'
     67          cache: npm
     68
    6469      - name: Log debug information
    6570        run: |
     
    6974          git --version
    7075          svn --version
    71           php --version
    72           php -i
    7376          locale -a
    7477
    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
     78      - name: Install npm Dependencies
    8279        run: npm ci
    8380
     
    8885        run: |
    8986          npm run env:start
    90 
    91       - name: General debug information
    92         run: |
    93           npm --version
    94           node --version
    95           curl --version
    96           git --version
    97           svn --version
    9887
    9988      - name: Log running Docker containers
Note: See TracChangeset for help on using the changeset viewer.