-
Notifications
You must be signed in to change notification settings - Fork 81
68 lines (64 loc) · 1.89 KB
/
conformance-web.yaml
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
name: "Web Conformance"
on:
push:
branches: [main, "v*"]
tags: ["v*"]
pull_request:
branches: [main, "v*"]
workflow_dispatch:
permissions:
contents: read
env:
# https://consoledonottrack.com/
DO_NOT_TRACK: 1
jobs:
browser:
strategy:
fail-fast: false
matrix:
browser: [chrome, safari, firefox]
client: [promise, callback]
include:
- os: ubuntu-22.04
- browser: safari
os: macos-12
runs-on: ${{ matrix.os }}
name: "${{ matrix.browser }} ${{ matrix.client }}"
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}/web-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/web-conformance
- name: NPM Install
run: npm ci
- name: Run
run: npx turbo run conformance:client:${{matrix.browser}}:${{matrix.client}} --output-logs new-only --log-order stream
node:
runs-on: ubuntu-22.04
strategy:
matrix:
# Node.js v16 does not provide all necessary fetch types by default
node-version: [21.1.0, 20.9.0, 18.16.0]
client: [promise, callback]
name: "Node.js ${{ matrix.node-version }} ${{ matrix.client }}"
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}/web-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/web-conformance
- name: NPM Install
run: npm ci
- name: Run
run: npx turbo run conformance:client:node:${{matrix.client}} --output-logs new-only --log-order stream