Repository navigation
82 lines (70 loc) · 2.24 KB
/
Copy pathnode-matrix.yml
File metadata and controls
82 lines (70 loc) · 2.24 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
# HOST3 / API7: Node versions at the endpoints of engines.node
# (^22.22.2 || ^24.15.0 || >=26.0.0) plus one non-Linux runner. Kept out of
# ci.yml so it can be edited independently. The two floors are pinned to
# their exact patch, because a bare major resolves to the newest release of
# that line and never runs the floor a host can install; 26 is Node Current
# as of 2026-08 (the open upper end of >=26.0.0).
name: Node
on:
push:
branches:
- main
- master
pull_request:
permissions:
contents: read
concurrency:
group: node-matrix-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
host3-node-matrix:
name: ${{ matrix.label }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
# `label` exists only to render the check name.
include:
- os: ubuntu-latest
node-version: 22.22.2
label: 22.22.2 on Ubuntu
- os: ubuntu-latest
node-version: 24.15.0
label: 24.15.0 on Ubuntu
- os: ubuntu-latest
node-version: 26
label: 26 on Ubuntu
- os: macos-latest
node-version: 22.22.2
label: 22.22.2 on macOS
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Pen toolchain
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
turbo-cache-scope: node-matrix
- name: Build packages
run: pnpm build
- name: Typecheck packages
run: pnpm typecheck
- name: Run unit and integration tests
run: pnpm test --concurrency=2 -- --maxWorkers=2
node-matrix:
# The single required check for this workflow. See
# .github/actions/require-jobs for why the aggregation exists and why
# `always()` is load-bearing.
name: All Node jobs
if: always()
needs: [host3-node-matrix]
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Require every host lane to have succeeded
uses: ./.github/actions/require-jobs
with:
needs: ${{ toJSON(needs) }}