Skip to content

Commit 2ba8006

Browse files
elalemanyojorrit
authored andcommitted
set env parameters conditionally
1 parent 975c0c8 commit 2ba8006

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- run: npm ci
2121
- run: npm run lint
22-
- run: npm run test:coverage
23-
if: ${{ matrix.node-version != '18.x' }}
24-
- run: npm run test:coverage
22+
- run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
2523
if: ${{ matrix.node-version == '18.x' }}
26-
env:
27-
NODE_OPTIONS: --openssl-legacy-provider
24+
- run: npm run test:coverage
25+
- run: echo "NODE_OPTIONS=" >> $GITHUB_ENV

0 commit comments

Comments
 (0)