Skip to content

Commit

Permalink
ci: fix coveralls action (#20)
Browse files Browse the repository at this point in the history
* ci: replace npm coveralls with github action

* ci: set path to coverage info
  • Loading branch information
iamogbz committed Sep 13, 2020
1 parent 4b98629 commit f03b2d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 75 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ jobs:
- name: Test
env:
CI: true
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
npm test -- --ci --coverage
npm run coveralls
- name: Build
run: |
npm run build
Expand All @@ -40,3 +38,8 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm run release
- name: Report
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./artifacts/coverage/lcov.info"
71 changes: 0 additions & 71 deletions package-lock.json

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

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"build": "rm -rf ./dist && tsc --project tsconfig.prod.json",
"build-watch": "tsc --watch",
"test": "jest",
"coveralls": "cat ./artifacts/coverage/lcov.info | coveralls",
"typecheck": "tsc --noEmit",
"commit": "git-cz",
"release": "semantic-release"
Expand Down Expand Up @@ -103,7 +102,6 @@
"babel-loader": "^8.1.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"commitizen": "^4.2.1",
"coveralls": "^3.1.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.2.0",
Expand Down

0 comments on commit f03b2d1

Please sign in to comment.