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 73816c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/lint.sh
@@ -0,0 +1,9 @@
#!/bin/bash

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

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

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

0 comments on commit 73816c8

Please sign in to comment.