Skip to content

Commit

Permalink
Fixed linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Jun 28, 2024
1 parent fb77be1 commit 739c438
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
#!/bin/sh


# Install tools to test our code-quality
go get -u golang.org/x/lint/golint
go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
go get -u honnef.co/go/tools/cmd/staticcheck
# Install the tools we use to test our code-quality.
#
# Here we setup the tools to install only if the "CI" environmental variable
# is not empty. This is because locally I have them installed.
#
# NOTE: Github Actions always set CI=true
#
if [ ! -z "${CI}" ] ; then
go install golang.org/x/lint/golint@latest
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
fi


# Run the static-check tool.
Expand Down

0 comments on commit 739c438

Please sign in to comment.