summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-07 18:10:34 +0200
committerKyren223 <Kyren223@proton.me>2025-01-07 18:10:34 +0200
commit4234068c584c54f6c5a6fff510cb7515100b14f8 (patch)
tree1c4c669e84ac6e348d39e754fef96eb2311945ae /.github
parentf9f0f769f639db1f9c27878f16bede796dd9ef8f (diff)
Added linting to CI, should fail
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml6
1 files changed, 6 insertions, 0 deletions
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 ./...