1
0
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:
wdvxdr 2022-04-04 21:37:50 +08:00
parent e2a42e5425
commit 03f3d34e3e
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6

View File

@ -25,6 +25,12 @@ jobs:
GO111MODULE=off go get golang.org/x/tools/cmd/goimports GO111MODULE=off go get golang.org/x/tools/cmd/goimports
goimports -l -w ./ goimports -l -w ./
- name: Static Check
uses: dominikh/staticcheck-action@v1.2.0
with:
install-go: false
version: "2022.1"
- name: Commit back - name: Commit back
if: github.repository_owner == 'Mrs4s' if: github.repository_owner == 'Mrs4s'
continue-on-error: true continue-on-error: true