Skip to content

Commit 7a564da

Browse files
committed
fix: add go mod tidy before linting and update golangci-lint version
- Run go mod tidy before golangci-lint to ensure modules are ready - Update golangci-lint from v1.57 to v1.61 for better compatibility - This should fix the 'no go files to analyze' error in CI
1 parent 539e5ef commit 7a564da

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
env:
1616
GO_VERSION: "1.21"
17-
GOLANGCI_LINT_VERSION: "v1.57"
17+
GOLANGCI_LINT_VERSION: "v1.61"
1818

1919
jobs:
2020
lint:
@@ -30,6 +30,9 @@ jobs:
3030
go-version: ${{ env.GO_VERSION }}
3131
cache: true
3232

33+
- name: Run go mod tidy
34+
run: go mod tidy
35+
3336
- name: Run golangci-lint
3437
uses: golangci/golangci-lint-action@v3
3538
with:

0 commit comments

Comments
 (0)