Skip to content

Commit e90f12e

Browse files
authored
Port codecov improvements matrix-react-sdk -> matrix-js-sdk (#2258)
1 parent c541b3f commit e90f12e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
codecov:
2+
allow_coverage_offsets: True
3+
coverage:
4+
status:
5+
project: off
6+
patch: off
17
comment:
28
layout: "diff, files"
39
behavior: default

.github/workflows/test_coverage.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@ on:
66
jobs:
77
test-coverage:
88
runs-on: ubuntu-latest
9+
env:
10+
# This must be set for fetchdep.sh to get the right branch
11+
PR_NUMBER: ${{github.event.number}}
912
steps:
1013
- name: Checkout code
1114
uses: actions/checkout@v2
1215

16+
- name: Yarn cache
17+
uses: c-hive/gha-yarn-cache@v2
18+
1319
- name: Run tests with coverage
1420
run: "yarn install && yarn build && yarn coverage"
1521

1622
- name: Upload coverage
1723
uses: codecov/codecov-action@v2
1824
with:
25+
fail_ci_if_error: false
1926
verbose: true

0 commit comments

Comments
 (0)