mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 10:06:14 +00:00
ci: add gofmt check
Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
This commit is contained in:
parent
bb6e090252
commit
5191a4d1b4
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -15,6 +15,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Check gofmt
|
||||
run: |
|
||||
find . -type f -name "*.go" | grep -v 'vendor' | xargs gofmt -l > gofmt_results.txt
|
||||
cat gofmt_results.txt
|
||||
if [ "$(cat gofmt_results.txt|wc -l)" -gt 0 ]; then exit 1; fi
|
||||
- name: Build and run CI tests
|
||||
run: |
|
||||
docker/run_docker.sh -t
|
||||
|
||||
Loading…
Reference in New Issue
Block a user