Skip to content

Downgrade go version used for static checking as it seems to break th… #5

Downgrade go version used for static checking as it seems to break th…

Downgrade go version used for static checking as it seems to break th… #5

name: Static analysis
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- name: Install analysis tools
run: |
go install golang.org/x/tools/cmd/goimports@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Vet
run: go vet cmd
- name: Goimports
run: test -z "$(goimports -e -d . | tee /dev/stderr)"
- name: Staticcheck
run: staticcheck cmd