we are running csharpier as msbuild dependency and want the build to fail of the code is not formatted. it used to work before but currently even when an error is detected the build succeeds and the github action workflow doesn't fail.
formatting error is detected correctly:
Error /home/runner/work/automation-data/automation-data/Poseidon/Poseidon/GqlSchema/ITSM/Itsm.cs - Was not formatted.
----------------------------- Expected: Around Line 1 -----------------------------
using System.Linq.Expressions;
using System.Reflection;
----------------------------- Actual: Around Line 1 -----------------------------
using Aveniq.Poseidon.GqlSchema.CMDB;
using Aveniq.Poseidon.GqlSchema.SMDB;
build fails:
Build failed.
0 Warning(s)
1 Error(s)
Actual behavior:
build succeeds and the exit code doesn't fail the github action job.
Environments:
Steps to reproduce:
dotnet build --configuration Release /p:CSharpier_LogLevel=Error
Expected behavior:
we are running csharpier as msbuild dependency and want the build to fail of the code is not formatted. it used to work before but currently even when an error is detected the build succeeds and the github action workflow doesn't fail.
formatting error is detected correctly:
build fails:
Actual behavior:
build succeeds and the exit code doesn't fail the github action job.