Make WordPress Core


Ignore:
Timestamp:
03/07/2023 07:36:29 PM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Backport updates to GitHub Actions.

This backports several changesets to GitHub Actions workflows. These changesets:

  • address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
  • adds support for automatically retrying a failed workflow once.
  • backports some Docker environment related tooling updates for the sake of consistency across branches.

Merges [53628], [53636], [53736], [53737], [53895], [53940], [53947], [54039], [54096], [54108], [54293], [54297], [54313], [54342], [54343], [54371], [54373], [54511], [54649], [54650], [54674], [54678], [54750], [54851], [54852], [54856], [54921], [55152] to the 6.0 branch.
See 55702, #52708, #55652, #55652, #55700, #55652, #56407, #56407, #56528, #55652, #55652, #55652, #54695, #55652, #55652, #55652, #55652, #56820, #56820, #56816, #55652, #55652, #56820, #56793, #56793, #53841, #57148, #57572, #56682.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/.github/workflows/end-to-end-tests.yml

    r53595 r55482  
    3434  # - Sets environment variables.
    3535  # - Checks out the repository.
     36  # - Sets up Node.js.
    3637  # - Logs debug information about the GitHub Action runner.
    37   # - Installs NodeJS.
    38   # _ Installs NPM dependencies.
     38  # - Installs npm dependencies.
    3939  # - Builds WordPress to run from the `build` directory.
    4040  # - Starts the WordPress Docker container.
    41   # - Logs general debug information.
    4241  # - Logs the running Docker containers.
    4342  # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container).
     
    5857
    5958      - name: Checkout repository
    60         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     59        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
     60
     61      - name: Set up Node.js
     62        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
     63        with:
     64          node-version-file: '.nvmrc'
     65          cache: npm
    6166
    6267      - name: Log debug information
     
    6772          git --version
    6873          svn --version
    69           php --version
    70           php -i
    7174          locale -a
    7275
    73       - name: Install NodeJS
    74         uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
    75         with:
    76           node-version-file: '.nvmrc'
    77           cache: npm
    78 
    79       - name: Install Dependencies
     76      - name: Install npm Dependencies
    8077        run: npm ci
    8178
     
    8683        run: |
    8784          npm run env:start
    88 
    89       - name: General debug information
    90         run: |
    91           npm --version
    92           node --version
    93           curl --version
    94           git --version
    95           svn --version
    9685
    9786      - name: Log running Docker containers
     
    129118      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
    130119      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     120
     121  failed-workflow:
     122    name: Failed workflow tasks
     123    runs-on: ubuntu-latest
     124    needs: [ e2e-tests, slack-notifications ]
     125    if: |
     126      always() &&
     127      github.repository == 'WordPress/wordpress-develop' &&
     128      github.event_name != 'pull_request' &&
     129      github.run_attempt < 2 &&
     130      (
     131        needs.e2e-tests.result == 'cancelled' || needs.e2e-tests.result == 'failure'
     132      )
     133
     134    steps:
     135      - name: Dispatch workflow run
     136        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     137        with:
     138          retries: 2
     139          retry-exempt-status-codes: 418
     140          script: |
     141            github.rest.actions.createWorkflowDispatch({
     142              owner: context.repo.owner,
     143              repo: context.repo.repo,
     144              workflow_id: 'failed-workflow.yml',
     145              ref: 'trunk',
     146              inputs: {
     147                run_id: '${{ github.run_id }}'
     148              }
     149            });
Note: See TracChangeset for help on using the changeset viewer.