Skip to content

Commit

Permalink
Move go tool install into separate step
Browse files Browse the repository at this point in the history
Add tool install into a separate step to avoid messing with Go modules.
  • Loading branch information
HeavyWombat committed May 25, 2021
1 parent 08fe5a5 commit dae02c8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Install Tools
run: |
pushd "$(mktemp -d)"
go get github.com/gordonklaus/ineffassign
go get golang.org/x/lint/golint
go get github.com/client9/misspell/cmd/misspell
go get honnef.co/go/tools/cmd/staticcheck
go get github.com/onsi/ginkgo/ginkgo github.com/onsi/gomega/...
popd
- name: Verify Go Modules Setup
run: |
go mod verify
Expand All @@ -40,27 +50,22 @@ jobs:
- name: Sanity Check (ineffassign)
run: |
go get github.com/gordonklaus/ineffassign
ineffassign ./...
- name: Sanity Check (golint)
run: |
go get golang.org/x/lint/golint
golint ./...
- name: Sanity Check (misspell)
run: |
go get github.com/client9/misspell/cmd/misspell
find . -type f | xargs misspell -source=text -error
- name: Sanity Check (staticcheck)
run: |
go get honnef.co/go/tools/cmd/staticcheck
staticcheck ./...
- name: Run Go Unit Tests
run: |
go get github.com/onsi/ginkgo/ginkgo github.com/onsi/gomega/...
ginkgo -r -randomizeAllSpecs -randomizeSuites -failOnPending -nodes=1 -compilers=1 -race -trace -cover
- name: Upload Code Coverage Profile
Expand Down

0 comments on commit dae02c8

Please sign in to comment.