feat: Update go version #1190
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint, Vet, GoFmt and Staticcheck analysis | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
lintvetanalysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Setup Golang | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
with: | |
go-version: '1.23' | |
- 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 ./... |