Files
planetmint-go/.github/workflows/audit.yaml
Julian Strobl 6a4dec59cc [audit] Remove continue-on-error on staticcheck
Let the pipeline fail if there is a staticcheck finding.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-07-07 10:37:27 +02:00

45 lines
908 B
YAML

---
name: Audit
on: [push]
jobs:
audit:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.19', '1.20' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
- name: Run go vet
run: go vet ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Run golint
run: golint -set_exit_status ./...
continue-on-error: true
- name: Run tests
run: go test -race -vet=off ./...