diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 00be7d4..7f3ea85 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,6 +5,9 @@ on: - main pull_request: +env: + GO_VERSION: 1.21 + permissions: contents: read # Optional: allow read access to pull request. Use with `only-new-issues` option. @@ -18,7 +21,11 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: stable + go-version: ${{ env.GO_VERSION }} + + - name: Run go mod tidy + run: go mod tidy + - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: