Skip to content

Commit

Permalink
Use c8 for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Nov 2, 2021
1 parent fb9525e commit 45737ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/Test.yml
Expand Up @@ -10,15 +10,22 @@ on:
jobs:
coverage:
runs-on: ubuntu-latest
env:
TZ: Europe/Tallinn

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Install and run
run: |
npm install -g nyc @litejs/cli
nyc -r lcovonly -r text lj test
- name: Coveralls
- uses: actions/setup-node@v2
with:
cache: npm
cache-dependency-path: 'package.json'
- name: Install
run: npm install -g c8 @litejs/cli
- name: Lint
run: lj lint
- name: Run
run: c8 -r lcov -r text-summary --check-coverage --branches=70 --functions=70 --lines=70 --statements=70 lj test --no-color
- name: Upload to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
11 changes: 0 additions & 11 deletions package.json
Expand Up @@ -33,16 +33,5 @@
"laxcomma": true,
"maxdepth": 6,
"quotmark": "double"
},
"nyc": {
"exclude": [
"coverage/**",
"test/**"
],
"reporter": [
"lcov",
"text",
"html"
]
}
}

0 comments on commit 45737ea

Please sign in to comment.