Skip to content

Commit

Permalink
added code coverage reports to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
aubreyquinn committed Sep 27, 2024
1 parent c61e603 commit caabdd2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on: ["push", "pull_request"]

name: Test Coveralls

on: ["push", "pull_request"]

jobs:
build:
name: Build
Expand All @@ -14,10 +14,13 @@ jobs:
with:
node-version: 20.x

- name: npm install, make test-coverage
- name: npm install, run tests with coverage
run: |
npm install
npm run test:coverage
- name: Upload coverage to Coveralls
uses: coverallsapp/[email protected]
- name: Upload coverage to Coveralls
uses: coverallsapp/[email protected]
with:
coveralls-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
path-to-lcov: ./coverage/lcov.info

0 comments on commit caabdd2

Please sign in to comment.