Skip to content

Commit

Permalink
Add staticcheck action
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Chlebek <eric@sensu.io>
  • Loading branch information
echlebek committed May 5, 2023
1 parent 2dcc67a commit 35e6b2a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/static-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: static-check

on:
pull_request:
push:
tags:
- 'v*'
branches:
- main

jobs:
staticcheck:
name: staticcheck (project)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- id: install_go
uses: WillAbides/setup-go-faster@v1.7.0
with:
go-version: "1.18.x"
- uses: dominikh/staticcheck-action@v1.2.0
with:
install-go: false
version: "2022.1.2"

0 comments on commit 35e6b2a

Please sign in to comment.