Skip to content

Commit 819ddbf

Browse files
authored
initial attempt at getting code coverage setup (#12)
1 parent 42f5f10 commit 819ddbf

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ jobs:
3434
# run linter
3535
- run: npm run lint
3636
# run tests just in case
37-
- run: npm test
37+
- run: npm test -- --coverage
38+
# send code coverage to coveralls
39+
- name: Coveralls
40+
uses: coverallsapp/github-action@master
41+
with:
42+
github-token: ${{ secrets.GITHUB_TOKEN }}
3843
# upgrade npm version in package.json to the tag used in the release.
3944
- run: npm version ${{ github.event.release.tag_name }}
4045
# publish the package

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
/dist
2+
/dist
3+
/coverage

0 commit comments

Comments
 (0)