Skip to content

Commit

Permalink
use annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jan 14, 2021
1 parent 7ba68c8 commit eba67b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

go get honnef.co/go/tools/cmd/staticcheck

output=$(staticcheck ./...)
code=$?

echo "$output"
exit $code
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
go mod tidy
diff go.mod go.mod.orig
diff go.sum go.sum.orig
- name: staticcheck
- name: annotate
run: |
go get honnef.co/go/tools/cmd/staticcheck
staticcheck ./...
text="Test error"
echo "::error file=example/staticerrors/main.go,line=7,col=2::$text"

0 comments on commit eba67b0

Please sign in to comment.