Skip to content

Merge pull request #1 from wapophis/main #5

Merge pull request #1 from wapophis/main

Merge pull request #1 from wapophis/main #5

name: Static Analysis
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923
with:
go-version: '1.18'
- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: |
staticcheck -version
staticcheck -- ./...
- name: Run go vet
run: go vet ./...