Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Dec 31, 2024
1 parent dbd54c1 commit 9a16575
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,16 @@ jobs:

- name: Check C# Formatting
run: |
find . -name "*.csproj" -exec dotnet format --verify-no-changes {} \;
# The above command's exit code will be preserved and fail the action if needed
echo "Current working directory: $(pwd)"
echo "Directory contents:"
ls -la
EXIT_CODE=0
while IFS= read -r project; do
echo "Checking format for: $project"
if ! dotnet format --verify-no-changes "$project"; then
echo "❌ Formatting issues found in $project"
EXIT_CODE=1
fi
done < <(find . -name "*.csproj")
exit $EXIT_CODE

0 comments on commit 9a16575

Please sign in to comment.