Skip to content

Commit 0e16e11

Browse files
committed
chore: somes changes for codecov
1 parent 9435b47 commit 0e16e11

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ jobs:
7373
- name: Upload coverage reports
7474
uses: codecov/codecov-action@v4
7575
with:
76-
file: ./coverage.out
77-
flags: unittests
78-
name: codecov-umbrella
76+
file: ./unit_coverage.out
77+
flags: unit-tests
78+
name: codecov-units
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080

8181
integration-tests:
@@ -159,9 +159,9 @@ jobs:
159159
- name: Upload coverage reports
160160
uses: codecov/codecov-action@v4
161161
with:
162-
file: ./coverage.out
163-
flags: unittests
164-
name: codecov-umbrella
162+
file: ./integration_coverage.out
163+
flags: integration-tests
164+
name: codecov-integrations
165165
token: ${{ secrets.CODECOV_TOKEN }}
166166

167167
build:

Taskfile.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ tasks:
4040
env:
4141
WH_DEBUG: 'true'
4242
cmds:
43-
- cmd: go test ./... --tags=unit -coverprofile coverage.out -covermode count
44-
- cmd: go tool cover -func coverage.out
43+
- cmd: go test ./... --tags=unit -coverprofile unit_coverage.out -covermode count
44+
- cmd: go tool cover -func unit_coverage.out
4545

4646
run-integration:
4747
aliases: [ri]
@@ -65,7 +65,8 @@ tasks:
6565
cmds:
6666
- cmd: ./bin/webhooked -p 8081 --config ./tests/integrations/webhooked_config.integrations.yaml &
6767
- defer: kill -9 $(pgrep -f "./bin/webhooked") || true
68-
- cmd: go test ./... --tags=integration -coverprofile coverage.out -covermode count
68+
- cmd: go test ./... --tags=integration -coverprofile integration_coverage.out -covermode count
69+
- cmd: go tool cover -func integration_coverage.out
6970

7071
test-load-testing:
7172
aliases: [tl]

0 commit comments

Comments
 (0)