|
5 | 5 | paths-ignore:
|
6 | 6 | - '**.md'
|
7 | 7 | repository_dispatch:
|
8 |
| - types: [ 'e2e tests**' ] |
| 8 | + types: ['e2e tests**'] |
9 | 9 |
|
10 | 10 | concurrency:
|
11 | 11 | group: e2e-tests-${{ github.event_name }}-${{ github.ref }}-${{ github.event.action }}
|
12 | 12 | cancel-in-progress: true
|
13 | 13 |
|
14 | 14 | jobs:
|
15 | 15 | create-test-matrix:
|
16 |
| - name: "Determine tests matrix" |
17 |
| - runs-on: ubuntu-latest |
18 |
| - timeout-minutes: 5 # 2023-09-15: The pnpm install may take a few minutes on cache miss. |
| 16 | + name: 'Determine tests matrix' |
| 17 | + runs-on: ubuntu-24.04 |
| 18 | + timeout-minutes: 5 # 2023-09-15: The pnpm install may take a few minutes on cache miss. |
19 | 19 | # Only run tests in the main repository
|
20 | 20 | if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
|
21 | 21 | outputs:
|
|
62 | 62 | echo "build-matrix=$BUILD_MATRIX" >> "$GITHUB_OUTPUT"
|
63 | 63 |
|
64 | 64 | build-projects:
|
65 |
| - name: "E2E: Build ${{ matrix.buildGroup }}" |
| 65 | + name: 'E2E: Build ${{ matrix.buildGroup }}' |
66 | 66 | runs-on: ubuntu-latest
|
67 | 67 | needs: create-test-matrix
|
68 | 68 | timeout-minutes: 30
|
|
98 | 98 | id: build-step
|
99 | 99 | if: steps.jetpack-build-cache.outputs.cache-hit != 'true'
|
100 | 100 | env:
|
101 |
| - COMPOSER_ROOT_VERSION: "dev-trunk" |
| 101 | + COMPOSER_ROOT_VERSION: 'dev-trunk' |
102 | 102 | BUILD_DIR: ./build-output
|
103 | 103 | PROJECT_PATH: ${{ matrix.path }}
|
104 | 104 | run: |
|
@@ -133,9 +133,9 @@ jobs:
|
133 | 133 | key: ${{ steps.jetpack-build-cache.outputs.cache-primary-key }}
|
134 | 134 |
|
135 | 135 | e2e-tests:
|
136 |
| - name: "${{ matrix.project }} e2e tests" |
| 136 | + name: '${{ matrix.project }} e2e tests' |
137 | 137 | runs-on: ubuntu-latest
|
138 |
| - needs: [ create-test-matrix, build-projects ] |
| 138 | + needs: [create-test-matrix, build-projects] |
139 | 139 | # The "always() && ! cancelled() && ! failure()" bit is needed to still run if the build was skipped.
|
140 | 140 | if: >
|
141 | 141 | always() && ! cancelled() && ! failure() &&
|
@@ -185,7 +185,7 @@ jobs:
|
185 | 185 |
|
186 | 186 | - name: Prepare build
|
187 | 187 | env:
|
188 |
| - COMPOSER_ROOT_VERSION: "dev-trunk" |
| 188 | + COMPOSER_ROOT_VERSION: 'dev-trunk' |
189 | 189 | BUILD_DIR: ./build-output
|
190 | 190 | PROJECT_PATH: ${{ matrix.path }}
|
191 | 191 | SUITE: ${{ matrix.suite }}
|
@@ -303,7 +303,7 @@ jobs:
|
303 | 303 | include-hidden-files: true
|
304 | 304 |
|
305 | 305 | test-report:
|
306 |
| - name: "Test report" |
| 306 | + name: 'Test report' |
307 | 307 | runs-on: ubuntu-latest
|
308 | 308 | if: ${{ success() || failure() }}
|
309 | 309 | needs: [e2e-tests]
|
@@ -340,7 +340,7 @@ jobs:
|
340 | 340 | client-payload: ${{ steps.report-context.outputs.client_payload }}
|
341 | 341 |
|
342 | 342 | slack-notification:
|
343 |
| - name: "Slack notification" |
| 343 | + name: 'Slack notification' |
344 | 344 | runs-on: ubuntu-latest
|
345 | 345 | if: ${{ success() || failure() }}
|
346 | 346 | needs: [e2e-tests]
|
@@ -376,16 +376,14 @@ jobs:
|
376 | 376 | VERSION: ${{ github.event.client_payload.ref_name }}
|
377 | 377 | run: echo "NOTIFICATION_SUITE=rc-${VERSION}" >> $GITHUB_ENV
|
378 | 378 |
|
379 |
| - - name: "Send notification" |
| 379 | + - name: 'Send notification' |
380 | 380 | uses: ./projects/github-actions/test-results-to-slack
|
381 | 381 | with:
|
382 | 382 | github_token: ${{ secrets.GITHUB_TOKEN }}
|
383 | 383 | slack_token: ${{ secrets.SLACK_TOKEN }}
|
384 | 384 | slack_channel: ${{ secrets.SLACK_E2E_CHANNEL }}
|
385 |
| - slack_icon_emoji: ":jetpack:" |
| 385 | + slack_icon_emoji: ':jetpack:' |
386 | 386 | suite_name: ${{ env.NOTIFICATION_SUITE }}
|
387 | 387 | playwright_report_path: test-output/**/summary.json
|
388 | 388 | playwright_output_dir: test-output/**/results
|
389 | 389 | rules_configuration_path: .github/files/e2e-tests/notification-rules.json
|
390 |
| - |
391 |
| - |
0 commit comments