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 <cursoragent@cursor.com>
This commit is contained in:
2026-05-02 20:17:19 +01:00
co-authored by Cursor
parent 26aa51360b
commit a6a51ec3ef
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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'