Skip to content

Bump github/codeql-action from 3.24.6 to 3.25.3 #1059

Bump github/codeql-action from 3.24.6 to 3.25.3

Bump github/codeql-action from 3.24.6 to 3.25.3 #1059

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@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
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 ./...