Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 37723c4

Browse files
committed
Pull go modules before running golangci-lint
This allows to use the cache for the go modules and it also takes downloading of the modules out of the timeout that is on the linter.
1 parent 592f842 commit 37723c4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ jobs:
55
- image: golangci/golangci-lint:v1.23.8-alpine
66
steps:
77
- checkout
8+
- restore_cache:
9+
keys:
10+
- go-modules-{{ checksum "go.mod" }}
11+
- run: go mod download
12+
- save_cache:
13+
key: go-modules-{{ checksum "go.mod" }}
14+
paths:
15+
- /go/pkg/mod
816
- run: golangci-lint run
917
verify-build:
1018
parameters:

0 commit comments

Comments
 (0)