simplify GOFMT Check
This commit is contained in:
parent
7841e146ee
commit
c5720ee3af
7
.github/workflows/cli.yml
vendored
7
.github/workflows/cli.yml
vendored
@ -40,12 +40,7 @@ jobs:
|
||||
|
||||
- name: GOFMT Check
|
||||
if: matrix.go == 1.13 && matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
if [ -z $(gofmt -l .) ]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
run: test -z $(gofmt -l .)
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user