From 02ef4ca403f6055ee80166151ae6a8794f23d273 Mon Sep 17 00:00:00 2001 From: Jasper Herzberg Date: Sun, 2 Apr 2023 20:22:33 +0200 Subject: [PATCH] ci: add verbosity for format check --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 878058d9..6ee17878 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,12 @@ jobs: - uses: nrwl/nx-set-shas@v3 - name: Check Formatting - run: npx nx format:check + run: | + if [[ $(npx nx format:check) ]]; then + npx prettier -w . + git diff --color | cat + exit 1 + fi - name: Lint run: npx nx affected --target=lint --parallel=3