mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
ci: add static check
This commit is contained in:
parent
e2a42e5425
commit
03f3d34e3e
6
.github/workflows/goimports.yml
vendored
6
.github/workflows/goimports.yml
vendored
@ -25,6 +25,12 @@ jobs:
|
||||
GO111MODULE=off go get golang.org/x/tools/cmd/goimports
|
||||
goimports -l -w ./
|
||||
|
||||
- name: Static Check
|
||||
uses: dominikh/staticcheck-action@v1.2.0
|
||||
with:
|
||||
install-go: false
|
||||
version: "2022.1"
|
||||
|
||||
- name: Commit back
|
||||
if: github.repository_owner == 'Mrs4s'
|
||||
continue-on-error: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user