Skip to content

Commit

Permalink
chore: use experimental fetch for 16.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Oct 9, 2023
1 parent 0ca122e commit 318bafd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/js-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -30,10 +30,12 @@ jobs:
path: |
logflare-js/node_modules
key: ${{ runner.os }}-${{matrix.node-version }}-npm
- name: Install deps
run: npm ci
- name: Build
run: npm run test
- run: npm ci
# use experiemntal node option for 16.x
- run: NODE_OPTIONS=--experimental-fetch npm run test
if: matrix.node-version == '16.x'
- run: npm run test
if: matrix.node-version != '16.x'

build_check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 318bafd

Please sign in to comment.