CI Go by @tim-thacker-nullify 111ee306b0a79e74c16cf3e42cf238c969614e1d #287
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: CI Go | |
| on: | |
| pull_request: | |
| paths: | |
| - .github/workflows/ci-go.yml | |
| - '**.go' | |
| - go.* | |
| - Makefile | |
| run-name: CI Go by @${{ github.actor }} ${{ github.sha }} | |
| jobs: | |
| build-test: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: build | |
| run: make build | |
| - name: tidy | |
| run: | | |
| go mod tidy | |
| git diff --exit-code | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.10.1 | |
| args: ./cmd/... ./pkg/... ./tests/... | |
| - name: test | |
| run: make unit |