2025 01 25 Project cleanup #2
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: Code QA and validation | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
code-qa: | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go + testing tools | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.23" | ||
- name: Staticcheck | ||
run: | | ||
go install honnef.co/go/tools/cmd/[email protected] | ||
staticcheck ./... | ||
- name: Gofumpt | ||
run: | | ||
go install mvdan.cc/[email protected] | ||
output=$(gofumpt -l .) | ||
if [ ! -z "$output" ]; then echo "$output" && exit 1; fi | ||
shell: bash | ||
- name: Vulnerabilities | ||
run: | | ||
go install golang.org/x/vuln/cmd/govulncheck@latest | ||
govulncheck ./... | ||
- name: Vet | ||
run: | | ||
go vet ./... |