Skip to content

Commit

Permalink
update .github/workflows/go-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
web3-bot committed Apr 6, 2021
1 parent 1da7f66 commit 06b5697
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/go-check.yml
Expand Up @@ -21,6 +21,14 @@ jobs:
go mod tidy
diff go.mod go.mod.orig
diff go.sum go.sum.orig
- name: gofmt
if: ${{ success() || failure() }} # run this step even if the previous one failed
run: |
out=$(gofmt -s -l .)
if [[ -n "$out" ]]; then
echo $out | awk '{print "::error file=" $0 ",line=0,col=0::File is not gofmt-ed."}'
exit 1
fi
- name: go vet
if: ${{ success() || failure() }} # run this step even if the previous one failed
run: go vet ./...
Expand Down

0 comments on commit 06b5697

Please sign in to comment.