Skip to content

Commit

Permalink
ci: switch to newer linter action
Browse files Browse the repository at this point in the history
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/gocloud.dev@v0.37.0/CONTRIBUTORS: Cannot open: File exists
  /usr/bin/tar: ../../../go/pkg/mod/gocloud.dev@v0.37.0/.gitattributes: Cannot open: File exists
  Error: /usr/bin/tar: ../../../go/pkg/mod/gocloud.dev@v0.37.0/pubsub/pub_test.go: Cannot open: File exists
  Error: /usr/bin/tar: ../../../go/pkg/mod/gocloud.dev@v0.37.0/pubsub/example_test.go: Cannot open: File exists
  Error: /usr/bin/tar: ../../../go/pkg/mod/gocloud.dev@v0.37.0/pubsub/mempubsub/example_test.go: Cannot open: File exists
  Error: /usr/bin/tar: ../../../go/pkg/mod/gocloud.dev@v0.37.0/pubsub/mempubsub/mem.go: Cannot open: File exists
  Error: /usr/bin/tar: ../../../go/pkg/mod/gocloud.dev@v0.37.0/pubsub/mempubsub/conformance_test.go: Cannot open:
  • Loading branch information
joelrebel committed Jun 27, 2024
1 parent 978f81a commit 65b218c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/push-pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --config .golangci.yml --timeout 2m
version: v1.56.2
- name: golangci-lint
uses: golangci/golangci-lint-action@v5
with:
args: --config .golangci.yml --timeout 2m
version: v1.56.2

- name: Test
run: go test ./...
- name: Test
run: go test ./...

build:
runs-on: ubuntu-latest
Expand All @@ -44,10 +44,10 @@ jobs:
id: dockerbuild-conditionorc
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: ghcr.io/metal-toolbox/conditionorc:latest
file: Dockerfile
context: .
push: false
tags: ghcr.io/metal-toolbox/conditionorc:latest
file: Dockerfile

- name: Scan image
id: scan-image
Expand Down

0 comments on commit 65b218c

Please sign in to comment.