Add CI/coverage badges and integration examples - #3
Merged
Merged
Conversation
CI: new 'coverage' job (pcov + Codecov upload, fail_ci_if_error: false so CI never blocks on it before the Codecov app is enabled for this repo). README: Tests and codecov badges. examples/: basic.php (a PHP fatal that is not a Throwable, caught via the shutdown handler), psr3-logger.php (a PSR-3 logger writing to stdout, 12-factor style), sse-interception.php (a fatal mid-stream on an active SSE response, answered as one more SSE event instead of corrupting the stream), slim.php (where this boundary sits relative to Slim's own error middleware). Each snippet other than slim.php was run and its output verified; none add a dependency to the package itself.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI: new
coveragejob (pcov + Codecov upload,fail_ci_if_error: falseso CI never blocks on it before the Codecov app is enabled for this repo — a manual activation step on codecov.io, same category as the Packagist submission). README: Tests and codecov badges.examples/:basic.php(a PHP fatal that is not aThrowable, caught via the shutdown handler),psr3-logger.php(a PSR-3 logger writing to stdout, 12-factor style),sse-interception.php(a fatal mid-stream on an active SSE response, answered as one more SSE event instead of corrupting the stream),slim.php(where this boundary sits relative to Slim's own error middleware — installed before the app, answers what Slim's middleware structurally cannot: a non-Throwable fatal).Each snippet other than
slim.phpwas run standalone and its output verified. None add a runtime dependency to the package itself.