From 66905ea5c1f8b0f32253b3473e606dc27ad4fe37 Mon Sep 17 00:00:00 2001 From: Matthias Diester Date: Sun, 7 Feb 2021 22:38:30 +0100 Subject: [PATCH] Add more sanity checks for testing GitHub action Add ineffassign Add golint Add misspell Add staticcheck Add go vet --- .github/workflows/test.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d18e37..5979d9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,6 @@ on: branches: [ main ] jobs: - build: name: Build runs-on: ubuntu-latest @@ -27,6 +26,19 @@ jobs: - name: Test run: | - go get github.com/onsi/ginkgo/ginkgo - go get github.com/onsi/gomega/... + go vet ./... + + go get github.com/gordonklaus/ineffassign + ineffassign ./... + + go get golang.org/x/lint/golint + golint ./... + + go get github.com/client9/misspell/cmd/misspell + find . -type f | xargs misspell -source=text -error + + go get honnef.co/go/tools/cmd/staticcheck + staticcheck ./... + + go get github.com/onsi/ginkgo/ginkgo github.com/onsi/gomega/... ginkgo -r -randomizeAllSpecs -randomizeSuites -failOnPending -nodes=1 -compilers=1 -race -trace -cover