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

Commit 250d7aa

Browse files
committed
CI: Precompile packages to prevent timeouts
When the linter runs it first needs to compile the packages, this can cause timeouts on the linter. We could bump the timeout on the linter, but instead we can just precompile the packages so the linter doesn't have to, which takes compilation out of the equation for the linter timeout. (cherry picked from commit 8056426) Signed-off-by: Brian Goff <cpuguy83@gmail.com>
1 parent dd762ec commit 250d7aa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
GO111MODULE: on
11-
GOLANGCI_LINT_VERSION: 1.23.8
11+
GOLANGCI_LINT_VERSION: 1.27.0
1212

1313
jobs:
1414
test:
@@ -73,5 +73,7 @@ jobs:
7373
- name: Install golangci-lint
7474
if: steps.bin.outputs.cache-hit != 'true'
7575
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ~/bin/ v${GOLANGCI_LINT_VERSION}
76+
- name: Precompile packages
77+
run: go build ./...
7678
- name: Lint
7779
run: ~/bin/golangci-lint run --disable-all -v -E govet -E misspell -E gofmt -E ineffassign -E golint

0 commit comments

Comments
 (0)