Skip to content

Commit 2fb7740

Browse files
authored
Merge pull request #652 from hahwul/ci/update-codecov-conf
Refine Codecov configuration to exclude cmd directory from coverage r…
2 parents c054b26 + 11b008e commit 2fb7740

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/codecov.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [main]
66
paths:
7-
- cmd/**/*
87
- pkg/**/*
98
- lib/**/*
109
- go.mod
@@ -14,7 +13,6 @@ on:
1413
pull_request:
1514
branches: [main]
1615
paths:
17-
- cmd/**/*
1816
- pkg/**/*
1917
- lib/**/*
2018
- go.mod
@@ -38,7 +36,7 @@ jobs:
3836
with:
3937
go-version: '1.23'
4038
- name: Run coverage
41-
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
39+
run: go test -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v /cmd/)
4240
- name: Upload results to Codecov
4341
uses: codecov/codecov-action@v5
4442
with:

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
ignore:
2-
- cmd/**/*
2+
- cmd/**/*

0 commit comments

Comments
 (0)