Skip to content

Not

Not #38

name: staticcheck
on:
push:
branches:
- '*'
tags-ignore:
- '*'
paths-ignore:
- '**/*.md'
- '**/.gitignore'
pull_request:
paths-ignore:
- '**/*.md'
- '**/.gitignore'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
go: ["1.19"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Install dependencies
run: go get .
- name: Run vet
run: go vet -v ./...
- name: Setup staticcheck
uses: dominikh/[email protected]
with:
version: "2022.1.3"
install-go: false
min-go-version: ${{ matrix.go }}
cache-key: ${{ matrix.os }}-${{ matrix.go }}
- name: Run staticcheck
run: staticcheck ./...