1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: enable vfmt check

This commit is contained in:
Alexander Medvednikov 2020-07-20 22:26:44 +02:00
parent 15ca64d81d
commit 3c90da6afa
2 changed files with 4 additions and 3 deletions

View File

@ -51,9 +51,9 @@ jobs:
./v vet vlib/v/gen/cgen.v ./v vet vlib/v/gen/cgen.v
./v vet vlib/v/checker ./v vet vlib/v/checker
./v vet vlib/sqlite ./v vet vlib/sqlite
# - name: v fmt - name: v fmt
# run: | run: |
# ./v fmt -verify vlib/v/checker/checker.v ./v fmt -verify vlib/v/checker/checker.v
# - name: Test v binaries # - name: Test v binaries
# run: ./v -silent build-vbinaries # run: ./v -silent build-vbinaries

View File

@ -204,6 +204,7 @@ fn (foptions &FormatOptions) post_process_file(file, formatted_file_path string)
} }
x := util.color_compare_files(diff_cmd, file, formatted_file_path) x := util.color_compare_files(diff_cmd, file, formatted_file_path)
if x.len != 0 { if x.len != 0 {
println("$file is not vfmt'ed")
exit(1) exit(1)
} }
return return