mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
ci: enable vfmt check
This commit is contained in:
parent
15ca64d81d
commit
3c90da6afa
2 changed files with 4 additions and 3 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue