Skip to content

Commit

Permalink
Updated tests to avoid the module-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Jan 28, 2020
1 parent a680181 commit 856f619
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
#!/bin/bash

# This will allow the linter to be installed. All a mess.
rm go.mod

# Install the lint-tool, and the shadow-tool
# Install the lint-tool
go get -u golang.org/x/lint/golint
go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow

# Init the modules
go mod init

# At this point failures cause aborts
set -e
Expand All @@ -19,9 +12,9 @@ golint -set_exit_status ./...
echo "Completed linter .."

# Run the shadow-checker
echo "Launching shadowed-variable check .."
go vet -vettool=$(which shadow) ./...
echo "Completed shadowed-variable check .."
echo "Launching 'go vet' check .."
go vet ./...
echo "Completed 'go vet' check .."

# Run golang tests
go test ./...

0 comments on commit 856f619

Please sign in to comment.