File tree Expand file tree Collapse file tree 1 file changed +31
-14
lines changed
Expand file tree Collapse file tree 1 file changed +31
-14
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,34 @@ jobs:
3030 matrix :
3131 os : [macos-latest, ubuntu-latest]
3232 runs-on : ${{ matrix.os }}
33- steps :
34- - uses : actions/checkout@v4
35- - uses : actions/setup-go@v5
36- with :
37- go-version-file : ' go.mod'
38- - name : Install Dependencies
39- run : go mod tidy
40- - name : Verify Build
41- run : go build ./...
42- - name : Run golangci-lint
43- uses : golangci/golangci-lint-action@v6.3.2
44- with :
45- version : v1.52.0
46- args : " --timeout 5m"
33+ steps :
34+ - uses : actions/checkout@v4
35+
36+ - uses : actions/setup-go@v5
37+ with :
38+ go-version-file : ' go.mod'
39+
40+ - name : Cache Go modules
41+ uses : actions/cache@v3
42+ with :
43+ path : |
44+ ~/go/pkg/mod
45+ ~/.cache/go-build
46+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
47+ restore-keys : |
48+ ${{ runner.os }}-go-
49+
50+ - name : Install Dependencies
51+ run : |
52+ go mod tidy
53+ go mod download
54+ go list -m all
55+
56+ - name : Verify Build
57+ run : go build ./...
58+
59+ - name : Run golangci-lint
60+ uses : golangci/golangci-lint-action@v6.3.2
61+ with :
62+ version : v1.52.0
63+ args : " --timeout 5m"
You can’t perform that action at this time.
0 commit comments