Skip to content

Commit b08f0b0

Browse files
authored
chore(coverage): allow code coverage to run of pull request (#1694)
* run code coverage on every pull request * also generate coverage on push on master branch * print the report without base report
1 parent d2842f0 commit b08f0b0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Coverage
22

3-
on: workflow_dispatch
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
env:
610
RUSTFLAGS: -Dwarnings
@@ -49,3 +53,6 @@ jobs:
4953
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
5054
with:
5155
files: lcov.info
56+
token: ${{ secrets.CODECOV_TOKEN }}
57+
fail_ci_if_error: false
58+
verbose: true

codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ignore:
2+
- (?s:.*/tests/.*)\Z
3+
comment:
4+
require_base: false

0 commit comments

Comments
 (0)