Skip to content

Commit

Permalink
YDA-5623: fail workflow if code is not properly formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Mar 11, 2024
1 parent 3001fe1 commit 475c3a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/linter-irods-clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ jobs:
- name: Run ClangFormat
run: |
echo "warnings=$(clang-format -n src/* | wc -l)" >> "$GITHUB_ENV"
- name: Check if source code is properly formatted
run: |
echo "Source code needs to be formatted!";
exit 1
if: ${{ env.warnings != 0 }}

0 comments on commit 475c3a0

Please sign in to comment.