Repository navigation
ci: skip the build and the Blazor smoke test for Markdown-only changes - #451
Merged
Merged
Conversation
…ly Markdown A pull request that changed a design note or the changelog ran the whole build and test suite, half an hour on the runner, though no project compiles a .md file. The build now ignores Markdown paths, and the smoke test's src/** filter no longer counts Markdown under src. A change that touches any other file is built as before. No ruleset requires these checks, so a skipped run cannot hold a merge pending. docs.yml is left alone: the site's Markdown is what it builds.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.



Why
A pull request that changes only Markdown, such as a design note or the changelog, ran the whole build and test suite. That took about 32 minutes on #449's run. No project compiles a
.mdfile.What changes
build-and-test.ymlsetspaths-ignore: '**/*.md'on bothpushandpull_request. The workflow is skipped only when every changed file is Markdown, so a change that also touches anything else is built as before.blazor-wasm-smoke.ymladds'!**/*.md'after'src/**', so Markdown undersrc/no longer triggers the smoke test.docs.ymlis unchanged. The site's Markdown is what that workflow builds.Safe to merge with skipped checks
The only active ruleset on
mainblocks deletion and non-fast-forward pushes. It requires no status checks. A skipped workflow therefore cannot leave a required check pending and block a merge. The comment inbuild-and-test.ymlsays so, for the day a required check is added.Testing
Both workflows run on this PR, because it changes
.ymlfiles. That run is the check that GitHub parses them. The skip itself can only be seen after this merges: a Markdown-only PR such as #450, rebased onmain, should start neither workflow.