Skip to content

Commit 64c100c

Browse files
authored
Merge pull request #47 from segmentio/PROT-5653/codecov
codecov
2 parents 9771d56 + c861b46 commit 64c100c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
id: yarn-cache-dir-path
2626
run: echo "::set-output name=dir::$(yarn cache dir)"
2727

28-
- uses: actions/cache@v2
28+
- uses: actions/cache@v4
2929
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
3030
with:
3131
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -40,4 +40,10 @@ jobs:
4040
run: yarn lint
4141

4242
- name: Test
43-
run: yarn test
43+
run: yarn test --coverage
44+
45+
- name: Upload coverage reports to Codecov
46+
uses: codecov/codecov-action@v5
47+
with:
48+
token: ${{ secrets.CODECOV_TOKEN }}
49+
slug: segmentio/tsub-js

codecov.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ coverage:
33
status:
44
project:
55
default:
6-
informational: true
6+
target: 80%
7+
informational: false
78
patch:
89
default:
9-
informational: true
10+
target: 80%
11+
informational: false

0 commit comments

Comments
 (0)