From b0a2dbad5e5e95eebc54af054aa9d468e8ced6de Mon Sep 17 00:00:00 2001 From: Lorne Stalker Date: Wed, 6 Sep 2023 20:12:30 +0100 Subject: [PATCH] adding staticcheck --- .github/workflows/server-ci.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/server-ci.yaml b/.github/workflows/server-ci.yaml index 00ca0b5..7858d18 100644 --- a/.github/workflows/server-ci.yaml +++ b/.github/workflows/server-ci.yaml @@ -22,8 +22,11 @@ jobs: with: go-version: '1.20.x' - - name: Go vet - run: go vet ./... + - name: SCA & Go vet + run: | + go install honnef.co/go/tools/cmd/staticcheck@latest + staticcheck ./... + go vet ./... - name: Install dependencies run: go get ./...