Skip to content

Commit 65b218c

Browse files
committed
ci: switch to newer linter action
golangci/golangci-lint-action#1024 https://github.com/golangci/golangci-lint-action/releases/tag/v5.0.0 fixes various cache issues during the linter run, /usr/bin/tar: ../../../go/pkg/mod/[email protected]/CONTRIBUTORS: Cannot open: File exists /usr/bin/tar: ../../../go/pkg/mod/[email protected]/.gitattributes: Cannot open: File exists Error: /usr/bin/tar: ../../../go/pkg/mod/[email protected]/pubsub/pub_test.go: Cannot open: File exists Error: /usr/bin/tar: ../../../go/pkg/mod/[email protected]/pubsub/example_test.go: Cannot open: File exists Error: /usr/bin/tar: ../../../go/pkg/mod/[email protected]/pubsub/mempubsub/example_test.go: Cannot open: File exists Error: /usr/bin/tar: ../../../go/pkg/mod/[email protected]/pubsub/mempubsub/mem.go: Cannot open: File exists Error: /usr/bin/tar: ../../../go/pkg/mod/[email protected]/pubsub/mempubsub/conformance_test.go: Cannot open:
1 parent 978f81a commit 65b218c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/push-pr-lint.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ jobs:
55
lint-test:
66
runs-on: ubuntu-latest
77
steps:
8-
- name: Checkout code
9-
uses: actions/checkout@v4
8+
- name: Checkout code
9+
uses: actions/checkout@v4
1010

11-
- name: Install Go
12-
uses: actions/setup-go@v4
13-
with:
14-
go-version-file: go.mod
11+
- name: Install Go
12+
uses: actions/setup-go@v4
13+
with:
14+
go-version-file: go.mod
1515

16-
- name: golangci-lint
17-
uses: golangci/golangci-lint-action@v3
18-
with:
19-
args: --config .golangci.yml --timeout 2m
20-
version: v1.56.2
16+
- name: golangci-lint
17+
uses: golangci/golangci-lint-action@v5
18+
with:
19+
args: --config .golangci.yml --timeout 2m
20+
version: v1.56.2
2121

22-
- name: Test
23-
run: go test ./...
22+
- name: Test
23+
run: go test ./...
2424

2525
build:
2626
runs-on: ubuntu-latest
@@ -44,10 +44,10 @@ jobs:
4444
id: dockerbuild-conditionorc
4545
uses: docker/build-push-action@v5
4646
with:
47-
context: .
48-
push: false
49-
tags: ghcr.io/metal-toolbox/conditionorc:latest
50-
file: Dockerfile
47+
context: .
48+
push: false
49+
tags: ghcr.io/metal-toolbox/conditionorc:latest
50+
file: Dockerfile
5151

5252
- name: Scan image
5353
id: scan-image

0 commit comments

Comments
 (0)