Skip to content

Commit

Permalink
Add github action workflow to produce coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoBakerHytch committed Nov 8, 2022
1 parent fb8a8aa commit 6234602
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Coveralls"
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run coverage
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
],
"scripts": {
"build": "tsc --build tsconfig.dist.json",
"coverage": "jest --coverage",
"clean": "rm -rf index.{js,js.map,d.ts} ./lib/*.{js,js.map,d.ts} ./tests/*.{js,js.map,d.ts}",
"test": "jest",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"test": "jest"
},
"dependencies": {},
"devDependencies": {
Expand Down

0 comments on commit 6234602

Please sign in to comment.