From 5bb4b1688a7acbf87996eba0641f780b7ae12667 Mon Sep 17 00:00:00 2001 From: Ricardo Band Date: Wed, 24 Jan 2024 13:33:26 +0100 Subject: [PATCH] add linter to CI --- .forgejo/workflows/tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index b7817ea..b207471 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -2,8 +2,7 @@ name: Run tests on: push: - branches: - - next + pull_request: workflow_dispatch: jobs: @@ -20,6 +19,11 @@ jobs: #go-version: "stable" go-version-file: "go.mod" check-latest: true + - name: Run Linter + uses: dominikh/staticcheck-action@v1.3.0 + with: + version: "latest" + install-go: false - name: Run tests run: make test