33 lines
No EOL
669 B
YAML
33 lines
No EOL
669 B
YAML
name: Staticcheck Scan
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
- "main"
|
|
paths-ignore:
|
|
- "**.md"
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
paths-ignore:
|
|
- "**.md"
|
|
|
|
jobs:
|
|
staticcheck-scan:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GO111MODULE: on
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v3
|
|
- name: Install Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: 'stable'
|
|
check-latest: true
|
|
cache: false
|
|
- name: Install staticcheck
|
|
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
|
- name: Run staticcheck
|
|
run: staticcheck ./... |