Skip to content

Commit 43587c0

Browse files
committed
fix(codecov): attempt to fix failed test and improve codecov config
1 parent be29efb commit 43587c0

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,17 @@ jobs:
1818
uses: actions/setup-go@v5
1919
with:
2020
go-version-file: go.mod
21-
- name: Install gotestsum
22-
run: go install gotest.tools/gotestsum@latest
2321
- name: Test
24-
run: gotestsum --junitfile report.xml -- -coverprofile=coverage.out $(go list ./... | grep -v '/gen$')
22+
run: go tool gotestsum --junitfile junit.xml -- -coverprofile=coverage.txt ./...
2523
- name: Report coverage
2624
uses: codecov/codecov-action@v5
2725
with:
2826
token: ${{ secrets.CODECOV_TOKEN }}
29-
files: ./coverage.out
30-
flags: unit
3127
name: ${{ join(matrix.*, ' ') }}
3228
- name: Upload test results to Codecov
3329
if: ${{ !cancelled() }}
3430
uses: codecov/test-results-action@v1
3531
with:
36-
files: report.xml
3732
token: ${{ secrets.CODECOV_TOKEN }}
3833

3934
build:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Commitizen
22
----------
33

4+
[![codecov](https://codecov.io/github/isokolovskii/commitizen/graph/badge.svg?token=2ZDYRhKDly)](https://codecov.io/github/isokolovskii/commitizen)
5+
46
CLI prompt tool for creation of [Conventional Commits](https://www.conventionalcommits.org). No more pain with commits rejected by validation tools or digging through [CONTRIBUTING.md](CONTRIBUTING.md) to find preferred commit format.
57

68
Based on wonderful work of [Commitizen](https://github.com/commitizen) with their [cz-cli](https://github.com/commitizen/cz-cli) which works like a charm in Node.js based projects.

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ tool (
66
github.com/evilmartians/lefthook
77
github.com/goreleaser/goreleaser/v2
88
github.com/shurcooL/markdownfmt
9+
gotest.tools/gotestsum
910
)
1011

1112
require (
@@ -92,6 +93,7 @@ require (
9293
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.10.1 // indirect
9394
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
9495
github.com/bahlo/generic-list-go v0.2.0 // indirect
96+
github.com/bitfield/gotestdox v0.2.2 // indirect
9597
github.com/blacktop/go-dwarf v1.0.10 // indirect
9698
github.com/blacktop/go-macho v1.1.238 // indirect
9799
github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb // indirect
@@ -139,6 +141,7 @@ require (
139141
github.com/digitorus/timestamp v0.0.0-20231217203849-220c5c2851b7 // indirect
140142
github.com/dimchansky/utfbom v1.1.1 // indirect
141143
github.com/distribution/reference v0.6.0 // indirect
144+
github.com/dnephin/pflag v1.0.7 // indirect
142145
github.com/docker/cli v28.2.2+incompatible // indirect
143146
github.com/docker/distribution v2.8.3+incompatible // indirect
144147
github.com/docker/docker v28.5.1+incompatible // indirect
@@ -195,6 +198,7 @@ require (
195198
github.com/google/rpmpack v0.7.1 // indirect
196199
github.com/google/s2a-go v0.1.9 // indirect
197200
github.com/google/safetext v0.0.0-20240722112252-5a72de7e7962 // indirect
201+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
198202
github.com/google/uuid v1.6.0 // indirect
199203
github.com/google/wire v0.6.0 // indirect
200204
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
@@ -374,6 +378,7 @@ require (
374378
gopkg.in/mail.v2 v2.3.1 // indirect
375379
gopkg.in/warnings.v0 v0.1.2 // indirect
376380
gopkg.in/yaml.v3 v3.0.1 // indirect
381+
gotest.tools/gotestsum v1.13.0 // indirect
377382
k8s.io/klog/v2 v2.130.1 // indirect
378383
lukechampine.com/blake3 v1.2.1 // indirect
379384
sigs.k8s.io/kind v0.27.0 // indirect

go.sum

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xW
208208
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
209209
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
210210
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
211+
github.com/bitfield/gotestdox v0.2.2 h1:x6RcPAbBbErKLnapz1QeAlf3ospg8efBsedU93CDsnE=
212+
github.com/bitfield/gotestdox v0.2.2/go.mod h1:D+gwtS0urjBrzguAkTM2wodsTQYFHdpx8eqRJ3N+9pY=
211213
github.com/blacktop/go-dwarf v1.0.10 h1:i9zYgcIROETsNZ6V+zZn3uDH21FCG5BLLZ837GitxS0=
212214
github.com/blacktop/go-dwarf v1.0.10/go.mod h1:4W2FKgSFYcZLDwnR7k+apv5i3nrau4NGl9N6VQ9DSTo=
213215
github.com/blacktop/go-macho v1.1.238 h1:OFfT6NB/SWxkoky7L/ytuY8QekgFpa9pmz/GHUQLsmM=
@@ -333,6 +335,8 @@ github.com/distribution/distribution/v3 v3.0.0 h1:q4R8wemdRQDClzoNNStftB2ZAfqOiN
333335
github.com/distribution/distribution/v3 v3.0.0/go.mod h1:tRNuFoZsUdyRVegq8xGNeds4KLjwLCRin/tTo6i1DhU=
334336
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
335337
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
338+
github.com/dnephin/pflag v1.0.7 h1:oxONGlWxhmUct0YzKTgrpQv9AUA1wtPBn7zuSjJqptk=
339+
github.com/dnephin/pflag v1.0.7/go.mod h1:uxE91IoWURlOiTUIA8Mq5ZZkAv3dPUfZNaT80Zm7OQE=
336340
github.com/docker/cli v28.2.2+incompatible h1:qzx5BNUDFqlvyq4AHzdNB7gSyVTmU4cgsyN9SdInc1A=
337341
github.com/docker/cli v28.2.2+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
338342
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
@@ -1183,8 +1187,10 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
11831187
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
11841188
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
11851189
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
1186-
gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0=
1187-
gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8=
1190+
gotest.tools/gotestsum v1.13.0 h1:+Lh454O9mu9AMG1APV4o0y7oDYKyik/3kBOiCqiEpRo=
1191+
gotest.tools/gotestsum v1.13.0/go.mod h1:7f0NS5hFb0dWr4NtcsAsF0y1kzjEFfAil0HiBQJE03Q=
1192+
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
1193+
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
11881194
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
11891195
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
11901196
k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=

0 commit comments

Comments
 (0)