File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 2929 runs-on : ubuntu-latest
3030
3131 steps :
32- - name : Run formatting test
32+ - name : Check out code
33+ uses : actions/checkout@v4
34+
35+ - name : Set up Go
36+ uses : actions/setup-go@v5
37+ with :
38+ go-version : " 1.25.1"
39+
40+ - name : Check formatting
3341 run : test -z $(go fmt ./...)
42+
43+ - name : Install staticcheck
44+ run : go install honnef.co/go/tools/cmd/staticcheck@latest
45+
46+ - name : Run staticcheck
47+ run : staticcheck ./...
Original file line number Diff line number Diff line change 11package auth
22
33import (
4- "fmt"
54 "net/http"
65 "testing"
76)
@@ -24,7 +23,6 @@ func TestGetAPIKey(t *testing.T) {
2423 for _ , tc := range tests {
2524 got , err := GetAPIKey (tc .header )
2625 if (err != nil ) != tc .wantErr {
27- fmt .Sprintf ("Got issue in test case %s" , tc .name )
2826 t .Fatalf ("expected error: %v, got %v" , tc .wantErr , err )
2927 }
3028 if got != tc .want {
You can’t perform that action at this time.
0 commit comments