Skip to content

Commit cc4344a

Browse files
committed
Test against min and max supported Node versions
1 parent daa668a commit cc4344a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
- ubuntu-22.04
1414
- windows-latest
1515
- macos-latest
16+
node_version:
17+
- 20
18+
- 24
1619
fail-fast: false # run tests on other operating systems even if one fails
1720

1821
runs-on: ${{ matrix.operating_system }}
@@ -24,7 +27,7 @@ jobs:
2427
- uses: ankane/setup-mongodb@v1
2528
- uses: actions/setup-node@v4
2629
with:
27-
node-version: 24
30+
node-version: ${{ matrix.node_version }}
2831
- run: npm ci
2932
- name: Run tests (Linux)
3033
if: ${{ runner.os == 'Linux' }}
@@ -40,6 +43,9 @@ jobs:
4043
- ubuntu-22.04 # Using Ubuntu 22.04 due to AppArmor restrictions in newer versions (23.10+) that interfere with Puppeteer's sandbox functionality. See https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu
4144
- windows-latest
4245
- macos-latest
46+
node_version:
47+
- 20
48+
- 24
4349
fail-fast: false # run tests on other operating systems even if one fails
4450

4551
runs-on: ${{ matrix.operating_system }}
@@ -54,7 +60,7 @@ jobs:
5460
path: ./demo-declarations
5561
- uses: actions/setup-node@v4
5662
with:
57-
node-version: 24
63+
node-version: ${{ matrix.node_version }}
5864
- run: cd ./demo-declarations && npm install
5965
- run: npm ci
6066
- run: ./node_modules/.bin/cross-env NODE_ENV=ci npm run declarations:lint
@@ -67,6 +73,9 @@ jobs:
6773
- ubuntu-22.04
6874
- windows-latest
6975
- macos-latest
76+
node_version:
77+
- 20
78+
- 24
7079
fail-fast: false
7180

7281
runs-on: ${{ matrix.operating_system }}
@@ -81,7 +90,7 @@ jobs:
8190
path: ./demo-declarations
8291
- uses: actions/setup-node@v4
8392
with:
84-
node-version: 24
93+
node-version: ${{ matrix.node_version }}
8594
- run: cd ./demo-declarations && npm install
8695
- run: npm ci
8796
- run: ./node_modules/.bin/cross-env NODE_ENV=ci npm run metadata:validate

0 commit comments

Comments
 (0)