Repository navigation
CI Go by @tim-thacker-nullify d8c63042da03680b40b95a90d460f805cc9d5ee7 #272
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: 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: Extract golangci-lint version | |
| id: extract_version | |
| run: | | |
| version=$(sh scripts/get_golangci_lint_version.sh) | |
| echo "golangci_lint_version=$version" >> $GITHUB_OUTPUT | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: ${{ steps.extract_version.outputs.golangci_lint_version }} | |
| args: ./cmd/... ./internal/... | |
| - name: test | |
| run: make unit |