Skip to content

Coverage to Codacy

Coverage to Codacy #3

Workflow file for this run

name: NodeJS c8 coverage on CI to Codecov
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependency
run: npm i -G c8
- name: Run for coverage
run: npm run ci
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
disable_search: true
files: ./coverage.lcov
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage.lcov