-
Notifications
You must be signed in to change notification settings - Fork 3k
168 lines (140 loc) · 5.98 KB
/
Copy pathobservable-wpt.yml
File metadata and controls
168 lines (140 loc) · 5.98 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: Observable WPT
on:
pull_request:
types: ['opened', 'reopened', 'synchronize']
paths:
- '.github/actions/install-dependencies/**'
- '.github/workflows/observable-wpt.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'packages/observable-polyfill/**'
- 'packages/rxjs/**'
push:
branches: ['master']
schedule:
- cron: '23 9 * * 2'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: observable-wpt-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
WPT_COMMIT: 6a009d73f0d315941b90cac13a9523a2a08c631b
WPT_PYTHON: 3.11.9
jobs:
pinned:
if: github.event_name != 'schedule'
name: Pinned Chrome 150 Observable WPT (Node 24)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install JavaScript dependencies
uses: ./.github/actions/install-dependencies
with:
node-version: '24'
- name: Install pinned Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ env.WPT_PYTHON }}
- name: Install WPT native build dependencies
run: sudo apt-get update && sudo apt-get install --yes libatspi2.0-dev libcairo2-dev libgirepository1.0-dev pkg-config
- name: Restore pinned WPT runner
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: .cache/rxjs-wpt/runner
key: observable-wpt-runner-${{ runner.os }}-${{ runner.arch }}-python-${{ env.WPT_PYTHON }}-${{ env.WPT_COMMIT }}
- name: Restore pinned browser
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: .cache/rxjs-wpt/browser
key: observable-wpt-browser-${{ runner.os }}-chrome-150.0.7871.126-${{ hashFiles('packages/observable-polyfill/test/wpt/browser-lock.json') }}
- name: Verify the pinned import
run: pnpm run wpt:verify-import
- name: Run native and fallback lifecycle contract
run: pnpm run test:lifecycle
- name: Run native and fallback extension-kernel contract
run: pnpm run test:kernel
- name: Run the attested conformance suite
run: pnpm run test:wpt
- name: Upload WPT evidence
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: observable-wpt-pinned-${{ github.run_id }}
if-no-files-found: warn
retention-days: 14
path: |
.cache/rxjs-wpt/reports/**/wptreport.json
.cache/rxjs-wpt/reports/**/wpt.raw.log
.cache/rxjs-wpt/reports/**/wpt.log
.cache/rxjs-wpt/reports/**/audit.json
.cache/rxjs-wpt/reports/**/attestations.json
.cache/rxjs-wpt/reports/**/status-diff.txt
packages/observable-polyfill/test/wpt/expected-test-urls.json
latest-chrome:
if: github.event_name == 'schedule'
name: Latest stable Chrome Observable WPT (Node 24, advisory)
runs-on: ubuntu-latest
timeout-minutes: 20
continue-on-error: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install JavaScript dependencies
uses: ./.github/actions/install-dependencies
with:
node-version: '24'
- name: Install pinned Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ env.WPT_PYTHON }}
- name: Install WPT native build dependencies
run: sudo apt-get update && sudo apt-get install --yes libatspi2.0-dev libcairo2-dev libgirepository1.0-dev pkg-config
- name: Restore pinned WPT runner
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: .cache/rxjs-wpt/runner
key: observable-wpt-runner-${{ runner.os }}-${{ runner.arch }}-python-${{ env.WPT_PYTHON }}-${{ env.WPT_COMMIT }}
- name: Install latest stable Chrome and matching driver
id: chrome
uses: browser-actions/setup-chrome@2e1d749697dd1612b833dba4a722266286fbefcd # v2.1.2
with:
chrome-version: stable
install-chromedriver: true
- name: Verify the pinned import
run: pnpm run wpt:verify-import
- name: Run native and fallback lifecycle contract
run: pnpm run test:lifecycle
env:
RXJS_WPT_ALLOW_BROWSER_DRIFT: '1'
RXJS_WPT_CHROME_BINARY: ${{ steps.chrome.outputs.chrome-path }}
RXJS_WPT_CHROMEDRIVER: ${{ steps.chrome.outputs.chromedriver-path }}
- name: Run native and fallback extension-kernel contract
run: pnpm run test:kernel
env:
RXJS_WPT_ALLOW_BROWSER_DRIFT: '1'
RXJS_WPT_CHROME_BINARY: ${{ steps.chrome.outputs.chrome-path }}
RXJS_WPT_CHROMEDRIVER: ${{ steps.chrome.outputs.chromedriver-path }}
- name: Run advisory browser-drift conformance check
run: pnpm run test:wpt
env:
RXJS_WPT_ALLOW_BROWSER_DRIFT: '1'
RXJS_WPT_CHROME_BINARY: ${{ steps.chrome.outputs.chrome-path }}
RXJS_WPT_CHROMEDRIVER: ${{ steps.chrome.outputs.chromedriver-path }}
- name: Upload WPT evidence
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: observable-wpt-latest-chrome-${{ github.run_id }}
if-no-files-found: warn
retention-days: 14
path: |
.cache/rxjs-wpt/reports/**/wptreport.json
.cache/rxjs-wpt/reports/**/wpt.raw.log
.cache/rxjs-wpt/reports/**/wpt.log
.cache/rxjs-wpt/reports/**/audit.json
.cache/rxjs-wpt/reports/**/attestations.json
.cache/rxjs-wpt/reports/**/status-diff.txt
packages/observable-polyfill/test/wpt/expected-test-urls.json