From a6a51ec3ef328fe403eccd205b38ed7f646819f1 Mon Sep 17 00:00:00 2001 From: Andriy Oblivantsev Date: Sat, 2 May 2026 20:17:19 +0100 Subject: [PATCH] fix(ci): make lint and windows tests reliable Run golangci-lint v2 via go install to match the active Go toolchain, and remove Windows coverprofile generation that PowerShell resolves incorrectly as package .out. Co-authored-by: Cursor --- .github/workflows/lint.yml | 8 ++++---- .github/workflows/test.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3354190..3a76867 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,8 +25,8 @@ jobs: - name: Run go vet run: go vet ./... + - name: Install golangci-lint + run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest + - name: golangci-lint - uses: golangci/golangci-lint-action@v6 - with: - version: latest - args: --timeout 5m + run: golangci-lint run --timeout 5m diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74919d0..1371bac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,7 +55,7 @@ jobs: - name: Run tests with shuffle if: runner.os == 'Windows' - run: go test -shuffle=on -count=1 -coverprofile=coverage.out -covermode=atomic ./... + run: go test -shuffle=on -count=1 ./... - name: Upload coverage if: matrix.os == 'ubuntu-latest' && matrix.go == 'stable'