ci: enable vfmt check

pull/5902/head
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/checker
./v vet vlib/sqlite
# - name: v fmt
# run: |
# ./v fmt -verify vlib/v/checker/checker.v
- name: v fmt
run: |
./v fmt -verify vlib/v/checker/checker.v
# - name: Test v binaries
# 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)
if x.len != 0 {
println("$file is not vfmt'ed")
exit(1)
}
return