Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
run go vet and staticcheck in go-check
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Mar 7, 2021
1 parent e5f9b96 commit 45cb0aa
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions workflow-templates/go-check.yml
Expand Up @@ -6,8 +6,14 @@ jobs:
name: Go checks
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@d9f0e73c0497685d68af8c58280f49fcaf0545ff # v2.5.1
- uses: actions/setup-go@v2
with:
version: v1.33
args: "--disable-all --enable gofmt,govet"
go-version: "1.16.x"
- name: go vet
run: go vet ./...
- name: staticcheck
if: ${{ success() || failure() }}
run: |
set -o pipefail
staticcheck ./... | sed -e "s/\(.*\)\.go/.\/\1.go/g"

0 comments on commit 45cb0aa

Please sign in to comment.