Repository navigation
75 lines (69 loc) · 2.39 KB
/
Copy pathtracker.yml
File metadata and controls
75 lines (69 loc) · 2.39 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Tracker CI
on:
workflow_dispatch:
pull_request:
paths:
- "tracker/**"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: 15
runs-on: blacksmith-4vcpu-ubuntu-2404
container:
# keep in sync with playwright package in /tracker folder
image: mcr.microsoft.com/playwright:v1.56.1-noble
options: --user 1001
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24.22.1
cache: 'npm'
cache-dependency-path: tracker/package-lock.json
- name: Install dependencies
run: npm --prefix ./tracker ci
- name: Run Playwright tests
run: npm --prefix ./tracker test -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --reporter=blob
- name: Upload blob report to GitHub Actions Artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: blob-report-${{ matrix.shardIndex }}
path: tracker/blob-report
retention-days: 1
merge-sharded-test-report:
if: ${{ !cancelled() }}
needs: [test]
timeout-minutes: 5
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24.22.1
cache: 'npm'
cache-dependency-path: tracker/package-lock.json
- name: Install dependencies
run: npm --prefix ./tracker ci
- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
path: all-blob-reports
pattern: blob-report-*
merge-multiple: true
- name: Merge into list report
working-directory: ./tracker
run: npx playwright merge-reports --reporter list ../all-blob-reports