From 65b218c9cf455574029fb336297e31a2b8d078f0 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Tue, 25 Jun 2024 12:35:57 +0200 Subject: [PATCH] ci: switch to newer linter action https://github.com/golangci/golangci-lint-action/pull/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: --- .github/workflows/push-pr-lint.yaml | 34 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/push-pr-lint.yaml b/.github/workflows/push-pr-lint.yaml index 97d3afe1..9d84fd47 100644 --- a/.github/workflows/push-pr-lint.yaml +++ b/.github/workflows/push-pr-lint.yaml @@ -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 @@ -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