diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index 680f2bd..870df03 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -15,10 +15,7 @@ jobs: - name: Tool restore run: dotnet tool restore - name: Format Check - run: dotnet fantomas . --check - - name: log format failure - if: failure() - run: echo "The code was not formatted, run 'dotnet fantomas .' to format all code." + run: dotnet fantomas . --check || { if [ $? -eq 99 ]; then echo "The code was not formatted, run 'dotnet fantomas .' to format all code."; exit 1; fi; } - name: Restore run: dotnet restore - name: Run Build