Skip to content

Commit 7fd359f

Browse files
committed
ci: fix build path and update Go version to 1.25
1 parent 806a727 commit 7fd359f

3 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: '1.24'
24+
go-version: '1.25'
2525
cache: true
2626

27+
- name: Vet
28+
run: go vet ./...
29+
2730
- name: Build
28-
run: go build -o gitee ./cmd/gitee
31+
run: go build -o gt ./cmd/gt
2932

3033
- name: Test
31-
run: go test ./...
34+
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

internal/cmd/git_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,3 @@ func TestNewGitOperationCmd(t *testing.T) {
127127
t.Error("newGitOperationCmd should disable flag parsing")
128128
}
129129
}
130-

internal/config/config.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ const (
1414
)
1515

1616
type Config struct {
17-
Host string `yaml:"host"`
18-
APIBase string `yaml:"api_base"`
19-
Token string `yaml:"token"`
20-
Output string `yaml:"output"`
21-
Editor string `yaml:"editor"`
22-
Aliases map[string]string `yaml:"aliases"`
23-
CurrentOrg string `yaml:"current_org"`
24-
User string `yaml:"user"`
25-
GitProtocol string `yaml:"git_protocol"`
26-
GitFlags []string `yaml:"git_flags"`
17+
Host string `yaml:"host"`
18+
APIBase string `yaml:"api_base"`
19+
Token string `yaml:"token"`
20+
Output string `yaml:"output"`
21+
Editor string `yaml:"editor"`
22+
Aliases map[string]string `yaml:"aliases"`
23+
CurrentOrg string `yaml:"current_org"`
24+
User string `yaml:"user"`
25+
GitProtocol string `yaml:"git_protocol"`
26+
GitFlags []string `yaml:"git_flags"`
2727
}
2828

2929
func Default() *Config {

0 commit comments

Comments
 (0)