Skip to content

Commit

Permalink
set env parameters conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
elalemanyo authored and jorrit committed Oct 24, 2022
1 parent 975c0c8 commit 2ba8006
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run test:coverage
if: ${{ matrix.node-version != '18.x' }}
- run: npm run test:coverage
- run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
if: ${{ matrix.node-version == '18.x' }}
env:
NODE_OPTIONS: --openssl-legacy-provider
- run: npm run test:coverage
- run: echo "NODE_OPTIONS=" >> $GITHUB_ENV

0 comments on commit 2ba8006

Please sign in to comment.