Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Integrate staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 15, 2023
1 parent 2e696ad commit 64ea81c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ on:
push:
branches:
- main
paths:
- '**.go'
- 'go.*'
- 'testdata/**'
pull_request:
paths:
- '**.go'
- 'go.*'
- 'testdata/**'

jobs:
build:
Expand All @@ -31,3 +39,15 @@ jobs:
run: go vet
- name: format
run: go fmt && git add --intent-to-add . && git diff --exit-code
# Because of default in vscode extension
staticcheck:
name: 'Run CI'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: dominikh/staticcheck-action@v1.3.0
with:
# Keep same version as *.nix
version: '2023.1.3'
2 changes: 2 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ tasks:
- goreleaser check
- typos . .github .vscode
- nixpkgs-fmt --check ./*.nix
- staticcheck
versions:
cmds:
- nix --version
Expand All @@ -39,3 +40,4 @@ tasks:
- dprint --version
- goreleaser --version
- typos --version
- staticcheck --version
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
go-task
goreleaser
typos
go-tools
];
};
});
Expand Down

0 comments on commit 64ea81c

Please sign in to comment.