CI Go 2476e4fbdbc807febb302dc5f33c66ae61038f9c by @renovate[bot] #205
Workflow file for this run
This file contains 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: | |
run-name: CI Go ${{ github.sha }} by @${{ github.actor }} | |
jobs: | |
lint-build-tidy-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
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 "::set-output name=golangci_lint_version::$version" | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: ${{ steps.extract_version.outputs.golangci_lint_version }} | |
args: ./cmd/... ./pkg/... ./tests/... | |
- name: test | |
run: make unit |