Skip to content
This repository has been archived by the owner on Nov 30, 2019. It is now read-only.

Commit

Permalink
Add coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
migo315 committed Oct 11, 2019
1 parent b6089f3 commit 6e9d86c
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ jobs:
with:
node-version: '10.x'
- run: npm install
- run: npm test
- run: npm run test-coverage
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: 'coverage.info'
65 changes: 65 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "src/client.js",
"scripts": {
"build": "minify src/client.js --mangle.keepClassName --deadcode.keepFnArgs --outFile dist/client.min.js",
"test": "jest"
"test": "jest",
"test-coverage": "jest --collectCoverage --coverageReporters=text-lcov >> coverage.info"
},
"repository": {
"type": "git",
Expand All @@ -25,6 +26,7 @@
"babel-jest": "^24.9.0",
"babel-minify": "^0.5.1",
"babel-preset-es2015": "^6.24.1",
"coveralls": "^3.0.7",
"jest": "^24.9.0"
}
}

0 comments on commit 6e9d86c

Please sign in to comment.