From 0eacc91988749904b2a1e0614b24fd92e699a6c1 Mon Sep 17 00:00:00 2001 From: Matty Evans Date: Thu, 23 Jan 2025 13:05:45 +1000 Subject: [PATCH 1/2] ci: Update golangci-lint-action version and arguments --- .github/workflows/golangci-lint.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 7af0647..8167586 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,5 +13,12 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: golangci/golangci-lint-action@v3 \ No newline at end of file + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + version: latest + args: --timeout=10m \ No newline at end of file From e00bc84c7092f27ff36c8613e0a2f5cc4177ea0f Mon Sep 17 00:00:00 2001 From: Matty Evans Date: Thu, 23 Jan 2025 13:08:11 +1000 Subject: [PATCH 2/2] ci(release): dont run tests/lint on release, its been through it already --- .github/workflows/release.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37ac3d2..1c9218d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,21 +10,7 @@ permissions: packages: write jobs: - go-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: ./.github/workflows/go-setup - - run: go test -v -race ./... - - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: golangci/golangci-lint-action@v3 - goreleaser: - needs: [go-test, lint] runs-on: ubuntu-latest steps: - name: Checkout