Changeset 55482 for branches/6.0/.github/workflows/end-to-end-tests.yml
- Timestamp:
- 03/07/2023 07:36:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/.github/workflows/end-to-end-tests.yml
r53595 r55482 34 34 # - Sets environment variables. 35 35 # - Checks out the repository. 36 # - Sets up Node.js. 36 37 # - Logs debug information about the GitHub Action runner. 37 # - Installs NodeJS. 38 # _ Installs NPM dependencies. 38 # - Installs npm dependencies. 39 39 # - Builds WordPress to run from the `build` directory. 40 40 # - Starts the WordPress Docker container. 41 # - Logs general debug information.42 41 # - Logs the running Docker containers. 43 42 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container). … … 58 57 59 58 - 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 61 66 62 67 - name: Log debug information … … 67 72 git --version 68 73 svn --version 69 php --version70 php -i71 74 locale -a 72 75 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 80 77 run: npm ci 81 78 … … 86 83 run: | 87 84 npm run env:start 88 89 - name: General debug information90 run: |91 npm --version92 node --version93 curl --version94 git --version95 svn --version96 85 97 86 - name: Log running Docker containers … … 129 118 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 130 119 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.