Skip to content

Bump gotest.tools/v3 from 3.5.0 to 3.5.1 #930

Bump gotest.tools/v3 from 3.5.0 to 3.5.1

Bump gotest.tools/v3 from 3.5.0 to 3.5.1 #930

name: Lint, Vet, GoFmt and Staticcheck analysis
on: [push, pull_request]
permissions:
contents: read
jobs:
lintvetanalysis:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Setup Golang
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
with:
go-version: '1.19'
- name: Set env vars (golint)
run: |
go mod tidy
go install golang.org/x/lint/golint@6edffad5e6160f5949cdefc81710b2706fbcd4f6
echo "$HOME/go/bin" >> $GITHUB_PATH
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Lint Analysis
run: |
golint ./internal/...
- name: Vet Analysis
run: |
go vet -v ./internal/...
- name: GoFmt Analysis
run: |
if [[ $(gofmt -l ./internal) ]]; then exit 1; fi
if [[ $(gofmt -l ./cmd) ]]; then exit 1; fi
- name: Staticcheck Analysis
run: |
staticcheck ./...