Skip to content

fix: package.json & package-lock.json to reduce vulnerabilities #327

fix: package.json & package-lock.json to reduce vulnerabilities

fix: package.json & package-lock.json to reduce vulnerabilities #327

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ '*' ]
jobs:
test:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
node: [18.x, 20.x]
exclude:
- platform: windows-latest
node: 18.x
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build -if-present
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
with:
run: npm test
codecov:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm ci
- run: npm run build -if-present
- run: npm run c8
- run: npm run lcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}