Skip to content

Commit

Permalink
Fail pipeline on formatting fail
Browse files Browse the repository at this point in the history
  • Loading branch information
tboby committed Oct 24, 2024
1 parent 479f1a9 commit d127883
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
- name: Tool restore
run: dotnet tool restore
- name: Format Check
run: dotnet fantomas . --check || echo "The code was not formatted, run `dotnet fantomas .` to format all code."
run: dotnet fantomas . --check
- name: log format failure
if: failure()
run: echo "The code was not formatted, run `dotnet fantomas .` to format all code."
- name: Restore
run: dotnet restore
- name: Run Build
Expand Down

0 comments on commit d127883

Please sign in to comment.