Skip to content

Commit 635df05

Browse files
committed
Single step CICD
1 parent dc95c13 commit 635df05

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/buildAndTest.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ jobs:
1515
- name: Tool restore
1616
run: dotnet tool restore
1717
- name: Format Check
18-
run: dotnet fantomas . --check
19-
- name: log format failure
20-
if: failure()
21-
run: echo "The code was not formatted, run 'dotnet fantomas .' to format all code."
18+
run: dotnet fantomas . --check || { if [ $? -eq 99 ]; then echo "The code was not formatted, run 'dotnet fantomas .' to format all code."; exit 1; fi; }
2219
- name: Restore
2320
run: dotnet restore
2421
- name: Run Build

0 commit comments

Comments
 (0)