Skip to content

Commit 8262c95

Browse files
committed
Changes to codecov configuration
1 parent ecc7f89 commit 8262c95

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ jobs:
295295
with:
296296
token: ${{ secrets.CODECOV_TOKEN }}
297297
directory: './pr/coverage'
298-
exclude: 'coverage-e2e' # coverage for smoke tests is already merged above
298+
exclude: 'coverage-e2e' #coverage for smoke tests is already merged above
299299

300300
- name: Code coverage
301301
run: |

codecov.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
coverage:
22
status:
3-
patch:
3+
project: #code coverage requirements for the entire project
44
default:
5-
target: 70%
6-
project:
5+
target: 50% #the required coverage value
6+
informational: true #temporary until CodeCov is setup on the repo
7+
patch: # code coverage requirements for the changes in the commit
78
default:
8-
target: 50%
9-
comment:
10-
layout: "reach, diff, flags, files"
9+
target: 70% #the required coverage value
10+
informational: true #temporary until CodeCov is setup on the repo
11+
comment: #Layout of the PR comment
12+
layout: "reach, diff, files"
1113
behavior: default
1214
parsers:
1315
cobertura:
14-
partials_as_hits: true
16+
partials_as_hits: true
17+
fixes:
18+
- "pr/::" # remove the pr root directory from test file paths
19+
ignore:
20+
- "dist/views"

0 commit comments

Comments
 (0)