mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-03-17 21:18:31 +02:00
add gofmt to circle
This commit is contained in:
parent
4b19b4108e
commit
2d9f7009fa
@ -10,6 +10,13 @@ jobs:
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-pkg-cache
|
||||
- run:
|
||||
name: Run gofmt -s
|
||||
command: |
|
||||
if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then
|
||||
find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;
|
||||
exit 1;
|
||||
fi
|
||||
- run:
|
||||
name: Run tests
|
||||
command: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user