Skip to content

Commit

Permalink
feat(chore): add coverage reports
Browse files Browse the repository at this point in the history
Create coverage reports and add report as PR comment
  • Loading branch information
marcolink committed May 16, 2020
1 parent 4710830 commit db40e6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
@@ -1,4 +1,4 @@
name: Tests
name: Test & Coverage

on: [push]

Expand All @@ -7,9 +7,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: yarn
name: Install dependencies
- run: yarn test
name: Run tests
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
#- uses: romeovs/lcov-reporter-action@v0.2.11
# name: Post code coverage report
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# lcov-file: ./coverage/lcov.info
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -54,7 +54,7 @@
"scripts": {
"posttest": "eslint . --ext .ts --config .eslintrc --fix",
"prepack": "rm -rf lib && tsc -b && oclif-dev readme",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"test": "nyc --reporter=text --reporter=lcov --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"test:watch": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\" --watch",
"build": "./node_modules/.bin/tsc",
"version": "oclif-dev readme && git add README.md",
Expand Down

0 comments on commit db40e6d

Please sign in to comment.