add gofmt check to actions workflow

This commit is contained in:
Ajitem Sahasrabuddhe 2020-01-25 23:24:15 +05:30
parent f1a114a628
commit d0c6cb3203

View File

@ -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