Skip to content

Commit

Permalink
Add coverage support. See if coveralls will work without extra permis…
Browse files Browse the repository at this point in the history
…sions.
  • Loading branch information
hildjj committed Oct 2, 2022
1 parent fdb4697 commit 1ee13ed
Show file tree
Hide file tree
Showing 7 changed files with 624 additions and 193 deletions.
11 changes: 11 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"exclude": [
"coverage/**",
"**/*.test.*",
".mocharc.js"
],
"reporter": [
"lcov",
"text"
]
}
20 changes: 16 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,19 @@ jobs:
if: matrix.node-version == '18.x' && matrix.os == 'ubuntu-latest'
run: npm run lint
- name: Test
run: npm run test:ci
# - uses: codecov/codecov-action@v3
# with:
# files: coverage/lcov.info
run: npm run ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: node-${{ matrix.node-version }}
parallel: true
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
9 changes: 9 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use strict";

module.exports = {
"spec": "lib/**/*.test.js",
diff: true,
"full-trace": true,
recursive: true,
reporter: "progress",
};
Loading

0 comments on commit 1ee13ed

Please sign in to comment.