Skip to content

Commit

Permalink
Integrate go staticcheck into the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed Oct 19, 2024
1 parent 96f9012 commit 2b9e2d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ on: [push, pull_request]
name: "Tests"
permissions:
contents: read
env:
GO_STATIC_CHECK_VERSION: "2024.1.1"
jobs:
cleaner:
name: Cleaner
Expand All @@ -17,6 +19,9 @@ jobs:
cache-dependency-path: "cleaner/go.sum"
- name: "Lint"
run: go vet ./...
- uses: dominikh/[email protected]
with:
version: "${{ env.GO_STATIC_CHECK_VERSION }}"
- name: "Test"
run: go test -cover ./...

Expand All @@ -38,6 +43,9 @@ jobs:
cp ui/index.html ui/build/index.html
- name: "Lint"
run: go vet ./...
- uses: dominikh/[email protected]
with:
version: "${{ env.GO_STATIC_CHECK_VERSION }}"
- name: "Test"
run: go test -cover ./...

Expand All @@ -55,6 +63,9 @@ jobs:
cache-dependency-path: "progress-watchdog/go.sum"
- name: "Lint"
run: go vet ./...
- uses: dominikh/[email protected]
with:
version: "${{ env.GO_STATIC_CHECK_VERSION }}"
- name: "Test"
run: go test -cover ./...

Expand Down

0 comments on commit 2b9e2d7

Please sign in to comment.