Skip to content

Commit

Permalink
add linters go vet and staticcheck
Browse files Browse the repository at this point in the history
fix #6

Signed-off-by: Sandor Szücs <[email protected]>
  • Loading branch information
szuecs committed May 7, 2024
1 parent 055c177 commit e07362f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dockertest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@

set -ev

go vet ./...

go install honnef.co/go/tools/cmd/staticcheck@latest
# disabled checks
# -ST1000 missing package doc in internal packages
# -ST1003 wrong naming convention would require breaking changes
staticcheck -checks "all,-ST1000,-ST1003" ./... | (grep -v "_test.go:" && exit 1 || exit 0)

trap "docker-compose down -v" EXIT
docker-compose up -d
sleep 5

go install gotest.tools/[email protected]
gotestsum --format standard-verbose --junitfile unit-tests.xml -- -coverprofile=coverage.out -race -timeout 30m "$@"

0 comments on commit e07362f

Please sign in to comment.