-
Notifications
You must be signed in to change notification settings - Fork 122
97 lines (86 loc) · 2.92 KB
/
Copy pathtests.yml
File metadata and controls
97 lines (86 loc) · 2.92 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
name: Tests
on: [push, pull_request, workflow_dispatch]
jobs:
tests:
strategy:
# NODE POLICY
#
# We always support Node Current, LTS, and Maintenance releases. See
# https://github.com/nodejs/release#release-schedule for the release
# schedule.
#
# We additionally support Node End-of-Life releases as is practical and
# reasonable on a case-by-case basis. If we decide it is worth dropping
# support for some Node version, it will be accompanied by a wireit
# semver major release.
#
# OS POLICY
#
# The oldest Node is tested with the oldest OS runner images, while
# everything else is tested with the latest. See:
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
matrix:
include:
# Node EOL (Oldest)
# on Linux/Mac/Windows (Oldest)
- node: 18
os: ubuntu-22.04
os-name: Linux
- node: 18
os: macos-14
os-name: Mac
- node: 18
os: windows-2022
os-name: Windows
# Node LTS (All Active & Maintenance)
# on Linux (Latest)
- node: 20
os: ubuntu-24.04
os-name: Linux
- node: 22
os: ubuntu-24.04
os-name: Linux
- node: 24
os: ubuntu-24.04
os-name: Linux
# Node Current
# on Linux/Mac/Windows (Latest)
- node: 25
os: ubuntu-24.04
os-name: Linux
- node: 25
os: macos-26
os-name: Mac
- node: 25
os: windows-2025
os-name: Windows
# Allow all matrix configurations to complete, instead of cancelling as
# soon as one fails. Useful because we often have different kinds of
# failures depending on the OS.
fail-fast: false
name: 'Node ${{ matrix.node}} / ${{ matrix.os-name }}'
# Sometimes windows is far slower than the other OSs. Give it enough
# time to complete if it's going to.
timeout-minutes: 40
runs-on: ${{ matrix.os }}
env:
WIREIT_LOGGER: 'metrics'
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
- uses: google/wireit@setup-github-actions-caching/v2
- run: npm ci
# See https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions for why we need xvfb-run
- run: npm test
if: runner.os != 'Linux'
# We run tests in parallel on Linux, but not on other OSs. This is
# because the Mac and Windows runners are very flaky, and parallelism
# makes them worse.
env:
WIREIT_PARALLEL: 1
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm run test:cache-github-real