Skip to content

chore(deps): update node.js to v20 #1258

chore(deps): update node.js to v20

chore(deps): update node.js to v20 #1258

Workflow file for this run

name: Build and Test
on:
- push
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version:
- 12
- 14
- 16
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test:coverage
- name: Lint once
run: npm run lint
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14'
- name: Build once
run: npm run build
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14'
- name: Check that TypeScript Example runs once
run: npm run tsexample1 | grep "The compare() function"
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14'
- name: Check that JavaScript Example runs once
run: npm run jsexample1 | grep "toHash() and compare() functions"
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14'
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true