Skip to content

Commit 4cb9a4b

Browse files
committed
Add steps to setup go packages for pre-commit
1 parent bd762fe commit 4cb9a4b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,22 @@ jobs:
3333
# it relies on the existence of a go.sum file.
3434
cache: false
3535
go-version: "1.20"
36+
- id: setup-go-critic
37+
run: go install -v github.com/go-critic/go-critic/cmd/gocritic@latest
38+
- id: setup staticheck
39+
uses: actions/checkout@v2
40+
with:
41+
fetch-depth: 1
42+
- name: Run staticcheck
43+
uses: dominikh/[email protected]
44+
with:
45+
version: "2022.1.3"
46+
- id: setup-go-sec
47+
uses: actions/checkout@v3
48+
env:
49+
GO111MODULE: on
50+
- name: Run Gosec Security Scanner
51+
uses: securego/gosec@master
3652
- name: Lookup Go cache directory
3753
id: go-cache
3854
run: |

0 commit comments

Comments
 (0)