Skip to content

Commit c4a0d3e

Browse files
refactor: remove duplication, add runtime fallbacks, unit tests, update
CI trigger path and mod file.
1 parent a402ee3 commit c4a0d3e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release-version-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Test GoReleaser and CLI Version
33
on:
44
push:
55
paths:
6-
- 'pkg/cmd/**'
6+
- 'cmd/**'
77
- 'build/.goreleaser.yml'
88
- '.github/workflows/release-version-ci.yml'
99
pull_request:
1010
paths:
11-
- 'pkg/cmd/**'
11+
- 'cmd/**'
1212
- 'build/.goreleaser.yml'
1313
- '.github/workflows/release-version-ci.yml'
1414

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ require (
1010
github.com/spf13/afero v1.14.0
1111
github.com/spf13/cobra v1.9.1
1212
github.com/spf13/pflag v1.0.7
13+
github.com/stretchr/testify v1.10.0
1314
golang.org/x/mod v0.26.0
1415
golang.org/x/text v0.27.0
1516
golang.org/x/tools v0.35.0
@@ -19,13 +20,15 @@ require (
1920

2021
require (
2122
github.com/Masterminds/semver/v3 v3.3.0 // indirect
23+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2224
github.com/go-logr/logr v1.4.2 // indirect
2325
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
2426
github.com/google/go-cmp v0.7.0 // indirect
2527
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
2628
github.com/inconshreveable/mousetrap v1.1.0 // indirect
2729
github.com/kr/pretty v0.3.1 // indirect
2830
github.com/pkg/errors v0.9.1 // indirect
31+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
2932
github.com/rogpeppe/go-internal v1.14.1 // indirect
3033
go.uber.org/automaxprocs v1.6.0 // indirect
3134
go.yaml.in/yaml/v2 v2.4.2 // indirect

0 commit comments

Comments
 (0)