Skip to content

Commit

Permalink
Create codecov.yml (#538)
Browse files Browse the repository at this point in the history
* Create .codecov.yml
* Add code coverage to test workflow
  • Loading branch information
wojciechczerniak committed Oct 8, 2020
1 parent 7152125 commit c1630f0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
codecov:
require_ci_to_pass: yes

coverage:
range: 70..100
round: down
precision: 2

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false
require_base: no
require_head: no
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ jobs:
- name: Run tests
run: |
npm run test:unit
npm run test:unit -- --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@6004246f47ab62d32be025ce173b241cd84ac58e # https://github.com/codecov/codecov-action/releases/tag/v1.0.13

browsers:
strategy:
Expand Down

0 comments on commit c1630f0

Please sign in to comment.