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

Commit

Permalink
Merge pull request #22 from ipld/go-vet-staticcheck
Browse files Browse the repository at this point in the history
run go vet and staticcheck in go-check
  • Loading branch information
marten-seemann committed Mar 8, 2021
2 parents 060fb29 + be1978c commit 8ca64d4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions workflow-templates/go-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ 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: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@be534f007836a777104a15f2456cd1fffd3ddee8 # v2020.2.2
- name: go vet
run: go vet ./...
- name: staticcheck
if: ${{ success() || failure() }} # run this step even if the previous one failed
run: |
set -o pipefail
staticcheck ./... | sed -e 's@\(.*\)\.go@./\1.go@g'

0 comments on commit 8ca64d4

Please sign in to comment.