Repository navigation
CI Go by @jonathanlam 2fe013b35d52df658a6f6cb278676460e3aa272b #358
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: office-ci-small | |
| 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 |