ci: add staticcheck to linting

See #6
This commit is contained in:
Clayton Craft
2021-09-04 18:13:31 -07:00
parent 8128877bcb
commit 7e3268a9c8
3 changed files with 17 additions and 13 deletions

View File

@@ -27,9 +27,11 @@ gofmt linting:
allow_failure: true
<<: *only-default
before_script:
- apk -q add go
# specific mirror used because staticcheck hasn't made it to the other mirrors yet...
- apk -q update --repository http://dl-4.alpinelinux.org/alpine/edge/testing
- apk -q add --repository http://dl-4.alpinelinux.org/alpine/edge/testing go staticcheck
script:
- .gitlab-ci/check_gofmt.sh
- .gitlab-ci/check_linting.sh
build:
stage: build