mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-08 10:23:43 +08:00
Chore: add static check
This commit is contained in:
parent
6ca03f5a90
commit
03266bfacb
5
.github/workflows/go.yml
vendored
5
.github/workflows/go.yml
vendored
@ -22,9 +22,12 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Get dependencies and run test
|
||||
- name: Get dependencies, run test and static check
|
||||
run: |
|
||||
go test ./...
|
||||
go vet ./...
|
||||
go get -u honnef.co/go/tools/cmd/staticcheck
|
||||
staticcheck -- $(go list ./...)
|
||||
|
||||
- name: Build
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
Loading…
x
Reference in New Issue
Block a user