Use staticcheck in drone
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2022-01-11 12:17:26 -08:00
parent 8a56f02fc5
commit 13045e3d98
1 changed files with 3 additions and 3 deletions

View File

@ -10,10 +10,11 @@ pipeline:
event: [ push, pull_request ]
image: golang
commands:
- go install honnef.co/go/tools/cmd/staticcheck@latest
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor -P tmp/
- chmod a+x tmp/tor
- go mod download
- go get -u golang.org/x/lint/golint
- go get -u
quality:
when:
repo: openprivacy/connectivity
@ -21,8 +22,7 @@ pipeline:
event: [ push, pull_request ]
image: golang
commands:
- go list ./... | xargs go vet
- go list ./... | xargs golint -set_exit_status
- staticcheck ./...
units-tests:
when:
repo: openprivacy/connectivity