Skip to content

Fix check command failure exit code#4510

Open
nkgotcode wants to merge 1 commit into
actions:mainfrom
nkgotcode:fix/check-command-exit-code
Open

Fix check command failure exit code#4510
nkgotcode wants to merge 1 commit into
actions:mainfrom
nkgotcode:fix/check-command-exit-code

Conversation

@nkgotcode

Copy link
Copy Markdown

Summary

Return a non-zero exit code from --check when any check extension reports failure.

Fixes #4395.

Testing

  • ../_dotnetsdk/8.0.421/dotnet format ActionsRunner.sln --exclude / --include Runner.Listener/Runner.cs Test/L0/Listener/RunnerL0.cs --verify-no-changes
  • ../_dotnetsdk/8.0.421/dotnet test Test/Test.csproj -c Debug --filter "FullyQualifiedName~RunnerL0.TestCheckCommandReturnsNonZeroWhenCheckFails" --logger "console;verbosity=normal"
  • ./dev.sh test

@nkgotcode nkgotcode requested a review from a team as a code owner June 17, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

./config.sh --check ... should return a non-zero exit code if any check fails.

1 participant