update to Go 1.26, drop Go 1.24 #378
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| permissions: | |
| contents: read | |
| on: [push, pull_request] | |
| jobs: | |
| check: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: [ "1.25.x", "1.26.x" ] | |
| runs-on: ubuntu-latest | |
| name: Lint | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Check for //go:build ignore in .go files | |
| run: | | |
| IGNORED_FILES=$(grep -rl '//go:build ignore' . --include='*.go') || true | |
| if [ -n "$IGNORED_FILES" ]; then | |
| echo "::error::Found ignored Go files: $IGNORED_FILES" | |
| exit 1 | |
| fi | |
| - name: Check that go.mod is tidied | |
| if: success() || failure() # run this step even if the previous one failed | |
| run: go mod tidy -diff | |
| - name: golangci-lint | |
| if: success() || failure() # run this step even if the previous one failed | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| args: --timeout=3m | |
| version: v2.9.0 |