chore: update modules #114
Workflow file for this run
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: Go build, test and lint | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| go: | |
| strategy: | |
| matrix: | |
| go: [1.24, 1.25] | |
| golangci: [v2.4.0] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| name: lint | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '${{ matrix.go }}' | |
| - name: Validate go generate / mod | |
| if: runner.os != 'Windows' | |
| run: | | |
| go generate ./... | |
| go mod tidy | |
| git --no-pager diff && [[ 0 -eq $(git status --porcelain | wc -l) ]] | |
| - name: Go Lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: ${{ matrix.golangci }} | |
| skip-cache: true | |
| - name: Go Build | |
| run: go build ./... | |
| - name: Go Test | |
| run: | | |
| go version | |
| go env | |
| go test -race -v ./... |