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
|
- name: GOFMT Check
|
||||||
if: matrix.go == 1.13 && matrix.os == 'ubuntu-latest'
|
if: matrix.go == 1.13 && matrix.os == 'ubuntu-latest'
|
||||||
run: |
|
run: test -z $(gofmt -l .)
|
||||||
if [ -z $(gofmt -l .) ]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user