add gofmt check to actions workflow
This commit is contained in:
parent
f1a114a628
commit
d0c6cb3203
8
.github/workflows/cli.yml
vendored
8
.github/workflows/cli.yml
vendored
@ -38,6 +38,14 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: GOFMT Check
|
||||
run: |
|
||||
if [ -z $(gofmt -l .) ]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
go run build.go vet
|
||||
|
Loading…
Reference in New Issue
Block a user