Skip to content

Commit 9b6d66d

Browse files
committed
Fix CI setup NODE_OPTIONS
1 parent cf997b4 commit 9b6d66d

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/main.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,35 @@ jobs:
88
build-and-test:
99
strategy:
1010
matrix:
11-
node: [16.x, 18.x, 20.x, 22.x]
11+
node:
12+
- version: 16.x
13+
- version: 18.x
14+
env: NODE_OPTIONS=--openssl-legacy-provider
15+
- version: 20.x
16+
env: NODE_OPTIONS=--openssl-legacy-provider
17+
- version: 22.x
18+
env: NODE_OPTIONS=--openssl-legacy-provider
1219
runs-on: ubuntu-latest
13-
name: Tests on Node.js v${{ matrix.node }}
20+
name: Tests on Node.js v${{ matrix.node.version }}
1421
steps:
1522
- name: Checkout repo
1623
uses: actions/checkout@v3
1724

1825
- name: Setup node
1926
uses: actions/setup-node@v3
2027
with:
21-
node-version: ${{ matrix.node }}
28+
node-version: ${{ matrix.node.version }}
2229

2330
- name: Download deps
2431
uses: bahmutov/npm-install@v1
2532
with:
2633
install-command: npm ci --legacy-peer-deps
2734

2835
- name: Build sources
29-
run: npm run build
36+
run: ${{ matrix.node.env }} npm run build
3037

3138
- name: Run tests
32-
run: npm run test
39+
run: ${{ matrix.node.env }} npm run test
3340

3441
lint:
3542
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)