Downgrade staticcheck version #2
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
# This workflow will run checks and validate the build | |
name: GoBuild | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.18' | |
- name: Install Dependencies | |
run: | | |
go install honnef.co/go/tools/cmd/staticcheck | |
go mod tidy | |
- name: Lint & Vet | |
run: | | |
go vet . | |
staticcheck . | |
- name: Build Validation | |
run: go build . | |