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

Commit 5da334b

Browse files
authored
Merge pull request #371 from secrethub/feature/lint-timeout
2 parents 114e34e + df88cf0 commit 5da334b

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,24 @@ 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
16+
- restore_cache:
17+
keys:
18+
- golangci-lint-{{ .Branch }}
19+
- golangci-lint-develop
820
- run: golangci-lint run
21+
- save_cache:
22+
key: golangci-lint-{{ .Branch }}
23+
paths:
24+
- ~/.cache/golangci-lint
25+
- ~/.cache/go-build
926
verify-build:
1027
parameters:
1128
os:

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ linters:
2424
- unconvert
2525
disable-all: true
2626
exclude-use-defaults: false
27+
run:
28+
timeout: 5m

0 commit comments

Comments
 (0)