Browse Source

add staticcheck

Matthew R. Kasun 3 years ago
parent
commit
ae39f2e429
1 changed files with 12 additions and 0 deletions
  1. 12 0
      .github/workflows/test.yml

+ 12 - 0
.github/workflows/test.yml

@@ -82,3 +82,15 @@ jobs:
         env:
           DATABASE: sqlite
           CLIENT_MODE: "off"
+  staticcheck:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Setup Go
+        uses: actions/setup-go@v2
+        with:
+          go-version: 1.18
+      - name: static checks
+        run: |
+            staticcheck ./...