Skip to content

fix: npm audit fix #143

fix: npm audit fix

fix: npm audit fix #143

Workflow file for this run

name: NodeJS Tests
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci --legacy-peer-deps
- run: npm run build --if-present
- run: npm test
- name: Upload coverage artifact
if: matrix.node-version == '22.x' # Only upload once
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov.info
coveralls:
runs-on: ubuntu-24.04
needs: build
steps:
- uses: actions/checkout@v3
- name: Download coverage artifact
uses: actions/download-artifact@v4
with:
name: coverage
path: coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info