Skip to content

Merge pull request #950 from fobo66/npm-up #1197

Merge pull request #950 from fobo66/npm-up

Merge pull request #950 from fobo66/npm-up #1197

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run coverage analysis to upload to Codacy
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Coverage
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: latest
cache: "npm"
- run: npm ci
- run: NODE_OPTIONS="--no-experimental-webstorage" npm run test
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/lcov.info
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}