tidy: address lint errors #3
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: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.6' | |
- name: Verify Go Mod | |
run: go mod verify | |
- name: Build | |
run: make build | |
- name: Check for pkg vulverabilities | |
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./... | |
- name: Run staticcheck | |
run: go run honnef.co/go/tools/cmd/staticcheck@latest -f stylish -checks=all,-ST1000,-U1000 ./... | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
# - name: Test | |
# run: go test -v ./... | |