Skip to content

Commit

Permalink
added coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Mar 14, 2022
1 parent 18b38a9 commit 780a414
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

on: [ pull_request ]

name: Test Coverage

jobs:

coverage:
name: Coverage
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@master
name: Checkout Module
with:
fetch-depth: 1

- name: Use Node.js 14
uses: actions/setup-node@master
with:
node-version: 14

- run: |
npm install
npm install --no-save nyc codecov
- run: npx nyc --reporter=lcovonly npm test
env:
NODE_ENV: cov

- name: Coveralls Report
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}

- name: Codecov Report
uses: codecov/codecov-action@v2
with:
name: codecov-umbrella
files: ./coverage.lcov

- name: CodeClimate Reporter
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: d196ece82e5a76cc8ef4b7abe23d45a48106e0b4f3775070655ecc72a4b06cb2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ node_modules

package-lock.json
coverage.lcov
.nyc_output

0 comments on commit 780a414

Please sign in to comment.