Skip to content

Bump github/codeql-action from 2.22.5 to 3.22.12 #978

Bump github/codeql-action from 2.22.5 to 3.22.12

Bump github/codeql-action from 2.22.5 to 3.22.12 #978

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@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Golang
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
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 ./...