File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ./...
Original file line number Diff line number Diff line change @@ -127,4 +127,3 @@ func TestNewGitOperationCmd(t *testing.T) {
127127 t .Error ("newGitOperationCmd should disable flag parsing" )
128128 }
129129}
130-
Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ const (
1414)
1515
1616type 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
2929func Default () * Config {
You can’t perform that action at this time.
0 commit comments