File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 name : lint
66 runs-on : ubuntu-latest
77 steps :
8- - uses : actions/checkout@v2
8+ - name : Set up Go
9+ uses : actions/setup-go@v2
10+ with :
11+ go-version : 1.17
12+
13+ - name : Check out code into the Go module directory
14+ uses : actions/checkout@v2
15+
16+ - name : Cache Go
17+ id : cache
18+ uses : actions/cache@v2
19+ with :
20+ # A list of files, directories, and wildcard patterns to cache and restore
21+ path : ~/go/pkg/mod
22+ key : ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
23+
924 - name : golangci-lint
1025 uses : golangci/golangci-lint-action@master
1126 with :
Original file line number Diff line number Diff line change 55 name : lint
66 runs-on : ubuntu-latest
77 steps :
8- - uses : actions/checkout@v2
8+ - name : Set up Go
9+ uses : actions/setup-go@v2
10+ with :
11+ go-version : 1.17
12+
13+ - name : Check out code into the Go module directory
14+ uses : actions/checkout@v2
15+
16+ - name : Cache Go
17+ id : cache
18+ uses : actions/cache@v2
19+ with :
20+ # A list of files, directories, and wildcard patterns to cache and restore
21+ path : ~/go/pkg/mod
22+ key : ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
23+
924 - name : golangci-lint
1025 uses : golangci/golangci-lint-action@master
1126 with :
You can’t perform that action at this time.
0 commit comments