From 7c889eec244228a8f91dd85a9d30028d3ebaa841 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 30 Mar 2024 07:51:53 +0100 Subject: [PATCH] ci: work around internal vfmt errors --- .github/workflows/analyzer_tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/analyzer_tests.yml b/.github/workflows/analyzer_tests.yml index d15a24ca..49d9bd0c 100644 --- a/.github/workflows/analyzer_tests.yml +++ b/.github/workflows/analyzer_tests.yml @@ -66,4 +66,12 @@ jobs: run: v .github/workflows/version_test.vv - name: Verify formatting - run: v fmt -verify -diff . + run: | + v fmt -verify -diff . + # Don't fail on vfmts internal errors. + exit_code=$? + if [[ $exit_code -eq 0 || $exit_code -eq 5 ]]; then + exit 0 + else + exit 1 + fi