Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(coverage): add coverage reports #97

Merged
merged 2 commits into from
Oct 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,25 @@ jobs:
run: npm ci
- run: npm run lint
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [8, 10, 12]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- uses: actions/setup-node@v1
with:
node-version: 12

- env:
CI: true
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: npm ci
- run: npm test
- run: |
npm run nyc
npm run coverage
- name: Coveralls GitHub Action
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 @@ -22,7 +22,7 @@
"semantic-release-npm-github-publish": "^1.3.4"
},
"engines": {
"node": ">=8.0.0 <11.0.0"
"node": ">=8.0.0 <12.0.0"
},
"files": [
"index.js",
Expand All @@ -48,13 +48,14 @@
"repository": "https://github.com/oleg-koval/trembita",
"scripts": {
"clean": "rm -rf node_modules package-lock.json",
"coverage": "npx nyc report --reporter=lcov",
"format": "prettier --check \"**/*.{js,json,md,ts,yml,yaml}\"",
"format:fix": "prettier --write \"**/*.{js,json,md,ts,yml,yaml}\"",
"lint": "npx goodparts index.js",
"nyc": "nyc npm test && nyc report --reporter=text-lcov",
"semantic-release": "semantic-release",
"test": "mocha",
"test:coverage": "npm run nyc | coveralls"
"test:coverage": "npm run test:nyc"
},
"version": "1.2.18"
}