Skip to content

Commit 9d386a8

Browse files
committed
Prepare Node 22, 24, and 26 test foundation
1 parent abfc139 commit 9d386a8

8 files changed

Lines changed: 562 additions & 418 deletions

File tree

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
name: Node ${{ matrix.node }} / ${{ matrix.os }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
node: [22, 24, 26]
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
22+
- name: Use Node.js ${{ matrix.node }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node }}
26+
cache: npm
27+
28+
- name: Prefer HTTPS for GitHub dependencies
29+
shell: bash
30+
run: git config --global url."https://github.com/".insteadOf ssh://git@github.com/
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Run integration tests
36+
run: npm test
37+
38+
alpine:
39+
name: Node 22 / Alpine with gcompat
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v4
44+
with:
45+
submodules: recursive
46+
47+
- name: Run Alpine smoke tests
48+
shell: bash
49+
run: >-
50+
docker run --rm
51+
-v "$PWD:/workspace"
52+
-w /workspace
53+
node:22-alpine
54+
sh -c 'apk add --no-cache gcompat git &&
55+
git config --global url."https://github.com/".insteadOf ssh://git@github.com/ &&
56+
npm ci && npm test'

0 commit comments

Comments
 (0)