Skip to content

Commit 14c67be

Browse files
committed
golangci-lint: increase timeout and enable caching
Caching was disabled for stuff that might not apply anymore: golangci/golangci-lint-action#153 We were timing out on the analysis so this might help. Signed-off-by: Mahe Tardy <[email protected]>
1 parent ec27bbc commit 14c67be

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/static-checks.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- 'docs/**'
1313
- '**.md'
1414

15+
permissions:
16+
# For golangci/golangci-lint to have read access to pull request for `only-new-issues` option.
17+
contents: read
18+
1519
jobs:
1620
golangci-lint:
1721
runs-on: ubuntu-latest
@@ -24,14 +28,15 @@ jobs:
2428
with:
2529
# renovate: datasource=golang-version depName=go
2630
go-version: '1.20.7'
31+
# using golangci-lint cache instead
32+
cache: false
2733

2834
- name: Run golangci-lint
2935
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # v3.6.0
3036
with:
3137
# renovate: datasource=docker depName=docker.io/golangci/golangci-lint
3238
version: v1.53.3
3339
args: --config=.golangci.yml --verbose
34-
skip-cache: true
3540

3641
format:
3742
runs-on: ubuntu-latest

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See https://golangci-lint.run/usage/configuration/ for available options.
22
# Also https://github.com/cilium/cilium/blob/master/.golangci.yaml as a reference.
33
run:
4-
timeout: 5m
4+
timeout: 10m
55

66
output:
77
format: tab

0 commit comments

Comments
 (0)