Skip to content

Commit e31a82b

Browse files
committed
[CI.yml] Default to the latest node for all jobs, and add a node 22 job.
1 parent 333d25a commit e31a82b

1 file changed

Lines changed: 27 additions & 45 deletions

File tree

.github/workflows/CI.yml

Lines changed: 27 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,14 @@ jobs:
66
lint:
77
runs-on: ubuntu-latest
88

9-
strategy:
10-
matrix:
11-
node-version: [22.3.0, latest]
12-
139
steps:
1410
- uses: actions/checkout@v4
1511
with:
1612
lfs: "true"
1713
- uses: oven-sh/setup-bun@v2
14+
- uses: actions/setup-node@v4
1815
with:
19-
bun-version: "latest"
20-
- name: Use `node` v${{ matrix.node-version }}
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node-version }}
16+
node-version: latest
2417
- run: make setup-without-playwright
2518
- run: make lint-ci
2619
- run: make lint-tsc-main
@@ -37,21 +30,14 @@ jobs:
3730
build:
3831
runs-on: ubuntu-latest
3932

40-
strategy:
41-
matrix:
42-
node-version: [22.3.0, latest]
43-
4433
steps:
4534
- uses: actions/checkout@v4
4635
with:
4736
lfs: "true"
4837
- uses: oven-sh/setup-bun@v2
38+
- uses: actions/setup-node@v4
4939
with:
50-
bun-version: "latest"
51-
- name: Use `node` v${{ matrix.node-version }}
52-
uses: actions/setup-node@v4
53-
with:
54-
node-version: ${{ matrix.node-version }}
40+
node-version: latest
5541
- run: make setup-without-playwright
5642
- run: make build-lib-js
5743
- run: make build-bin
@@ -63,43 +49,29 @@ jobs:
6349
test-src:
6450
runs-on: ubuntu-latest
6551

66-
strategy:
67-
matrix:
68-
node-version: [22.3.0, latest]
69-
7052
steps:
7153
- uses: actions/checkout@v4
7254
with:
7355
lfs: "true"
7456
- uses: oven-sh/setup-bun@v2
57+
- uses: actions/setup-node@v4
7558
with:
76-
bun-version: "latest"
77-
- name: Use `node` v${{ matrix.node-version }}
78-
uses: actions/setup-node@v4
79-
with:
80-
node-version: ${{ matrix.node-version }}
59+
node-version: latest
8160
- run: make setup
8261
- run: make test-ts-bun-with-coverage
8362
- run: make test-ts-dom-with-coverage
8463

8564
test-dist:
8665
runs-on: ubuntu-latest
8766

88-
strategy:
89-
matrix:
90-
node-version: [22.3.0, latest]
91-
9267
steps:
9368
- uses: actions/checkout@v4
9469
with:
9570
lfs: "true"
9671
- uses: oven-sh/setup-bun@v2
72+
- uses: actions/setup-node@v4
9773
with:
98-
bun-version: "latest"
99-
- name: Use `node` v${{ matrix.node-version }}
100-
uses: actions/setup-node@v4
101-
with:
102-
node-version: ${{ matrix.node-version }}
74+
node-version: latest
10375
- run: make setup
10476
- run: make build-lib-js
10577
- run: make test-dist-lib-node-import
@@ -115,23 +87,33 @@ jobs:
11587
- run: make check-package.json
11688
- run: make clean
11789

118-
check-fast:
90+
test-dist-node-22:
11991
runs-on: ubuntu-latest
12092

121-
strategy:
122-
matrix:
123-
node-version: [22.3.0, latest]
124-
12593
steps:
12694
- uses: actions/checkout@v4
12795
with:
12896
lfs: "true"
12997
- uses: oven-sh/setup-bun@v2
98+
- uses: actions/setup-node@v4
99+
with:
100+
node-version: 22.3.0
101+
- run: make setup
102+
- run: make build-lib-js
103+
- run: make test-dist-lib-node-import
104+
- run: make test-dist-lib-node-scramble
105+
- run: make clean
106+
107+
check-fast:
108+
runs-on: ubuntu-latest
109+
110+
steps:
111+
- uses: actions/checkout@v4
130112
with:
131-
bun-version: "latest"
132-
- name: Use `node` v${{ matrix.node-version }}
133-
uses: actions/setup-node@v4
113+
lfs: "true"
114+
- uses: oven-sh/setup-bun@v2
115+
- uses: actions/setup-node@v4
134116
with:
135-
node-version: ${{ matrix.node-version }}
117+
node-version: latest
136118
- run: make setup-without-playwright
137119
- run: time make check-fast

0 commit comments

Comments
 (0)