Skip to content

Commit

Permalink
Ensure build fails on JetBrains inspector issue detection
Browse files Browse the repository at this point in the history
  • Loading branch information
tjementum committed Nov 19, 2023
1 parent b5549ff commit 5cdbe04
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ jobs:
working-directory: application
run: |
dotnet tool restore &&
dotnet jb inspectcode PlatformPlatform.sln --build --output=result.xml --severity=WARNING
dotnet jb inspectcode PlatformPlatform.sln --build --output=result.xml --severity=SUGGESTION --exclude="**/*.csproj" # Exclude .csproj. See https://youtrack.jetbrains.com/issue/RSRP-490866
# Check if there are any issues. <Issues /> indicates no issues found.
if ! grep -q '<Issues />' result.xml; then
cat result.xml
echo "Code inspection issues found."
exit 1
fi
- name: Check for code formatting issues
working-directory: application
Expand Down

0 comments on commit 5cdbe04

Please sign in to comment.