Changeset 56926 for trunk/.github/workflows/end-to-end-tests.yml
- Timestamp:
- 10/13/2023 08:11:41 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/end-to-end-tests.yml
r56538 r56926 43 43 # - Logs debug information about the GitHub Action runner. 44 44 # - Installs npm dependencies. 45 # - Install Playwright browsers. 45 46 # - Builds WordPress to run from the `build` directory. 46 47 # - Starts the WordPress Docker container. … … 48 49 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container). 49 50 # - Install WordPress within the Docker container. 51 # - Install Gutenberg. 50 52 # - Run the E2E tests. 51 53 # - Ensures version-controlled files are not modified or deleted. … … 91 93 run: npm ci 92 94 95 - name: Install Playwright browsers 96 run: npx playwright install --with-deps 97 93 98 - name: Build WordPress 94 99 run: npm run build … … 116 121 run: npm run env:install 117 122 123 - name: Install Gutenberg 124 run: npm run env:cli -- plugin install gutenberg --path=/var/www/${{ env.LOCAL_DIR }} 125 118 126 - name: Run E2E tests 119 127 run: npm run test:e2e … … 130 138 run: git diff --exit-code 131 139 140 slack-notifications: 141 name: Slack Notifications 142 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 143 permissions: 144 actions: read 145 contents: read 146 needs: [ e2e-tests ] 147 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 148 with: 149 calling_status: ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }} 150 secrets: 151 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 152 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 153 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 154 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 155 132 156 failed-workflow: 133 157 name: Failed workflow tasks … … 142 166 github.run_attempt < 2 && 143 167 ( 144 needs.e2e-tests.result == 'cancelled' || needs.e2e-tests.result == 'failure' 168 contains( needs.*.result, 'cancelled' ) || 169 contains( needs.*.result, 'failure' ) 145 170 ) 146 171 steps:
Note: See TracChangeset
for help on using the changeset viewer.