From 4234068c584c54f6c5a6fff510cb7515100b14f8 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 7 Jan 2025 18:10:34 +0200 Subject: Added linting to CI, should fail --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd7984d..84298a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,5 +23,11 @@ jobs: - name: Format code run: test -z $(go fmt ./...) + - name: Install staticcheck + run: go install honnef.co/go/tools/cmd/staticcheck@latest + + - name: Run static analysis (linting) + run: staticcheck ./... + - name: Run tests run: go test --cover ./... -- cgit v1.3.1