-
Notifications
You must be signed in to change notification settings - Fork 300
49 lines (47 loc) · 1.62 KB
/
e2e-flakiness-detector.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Runs the e2e tests many times to detect intermittent flakiness proactively instead of having it be
# occasionally detected in unrelated PRs.
name: e2e-flakiness-detector
on:
schedule:
- cron: '0 14 * * *' # daily at 1400 UTC
workflow_dispatch:
jobs:
test-e2e:
strategy:
fail-fast: false
matrix:
runner: [ubuntu, windows]
runs-on: ${{ matrix.runner }}-latest
timeout-minutes: 120
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
- run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
id: pnpm-cache
- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- run: pnpm install
- run: xvfb-run -a pnpm -C vscode run test:e2e --repeat-each 10 --retries 0
if: matrix.runner == 'ubuntu'
env:
NO_LOG_TESTING_TELEMETRY_CALLS: "1"
- run: pnpm -C vscode run test:e2e --repeat-each 4 --retries 0
if: matrix.runner != 'ubuntu'
env:
NO_LOG_TESTING_TELEMETRY_CALLS: "1"
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: playwright-recordings ${{ matrix.runner }}
path: playwright/