Skip to content

Update to Node.js 20 and add npm package provenance #516

Update to Node.js 20 and add npm package provenance

Update to Node.js 20 and add npm package provenance #516

# This workflow will do a clean install of node dependencies, build the source code and run tests
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_VERSION: '20'
steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm i
- run: npm run lint
- run: npm run build
- run: npm run test
- run: npm run docs
- name: Codecov
uses: codecov/[email protected]
with:
directory: ./build/coverage
flags: unittests
fail_ci_if_error: true