Skip to content

Commit

Permalink
ci: add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 29, 2021
1 parent 28a5c74 commit 40ea438
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
@@ -1,3 +1,5 @@
name: test

on:
push:
branches:
Expand All @@ -23,3 +25,9 @@ jobs:
run: npm install --no-package-lock
- name: Test
run: npm test
- name: Report
run: mkdir -p coverage && npx nyc report --reporter=text-lcov > coverage/lcov.info
- name: Coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions package.json
Expand Up @@ -37,7 +37,6 @@
"ava": "latest",
"ci-publish": "latest",
"conventional-github-releaser": "latest",
"coveralls": "latest",
"finepack": "latest",
"git-authors-cli": "latest",
"git-dirty": "latest",
Expand All @@ -56,7 +55,6 @@
],
"scripts": {
"clean": "rm -rf node_modules",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "standard",
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
"precommit": "lint-staged",
Expand Down

0 comments on commit 40ea438

Please sign in to comment.