Repository navigation
feat(site): check marked website examples with the reference checker - #27
Merged
Merged
Conversation
Website pages show YAML manifests of three API versions, and nothing noticed when one of them stopped validating. `npm run check:examples` runs every YAML block that follows an `awp-check` comment through the reference checker: valid under all or the named profiles, or rejected with an expected diagnostic code and no error of another family, as in the conformance runner. Unknown options or profiles fail the run, and so does a run without any marked example. Unmarked blocks (fragments, proposals) are never checked. The Quickstart manifest is marked. Part of `npm test` in site/ and of the pages workflow. Also corrects the pinned Astro and Starlight versions in site/README.md. Signed-off-by: Erik <erik@weisser.dev>
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.
Summary
Website pages show manifests of three API versions, and nothing noticed when one stopped validating.
npm run check:examples(site/) runs every YAML block that follows anawp-checkcomment through the reference checker:<!-- awp-check -->: valid under all profiles;profiles=core,governancenarrows them.expect=<code>: rejected with that code and no error of another family (same rule as the conformance runner).Part of
npm testin site/ and of the pages workflow. The Quickstart manifest is marked. Also corrects the pinned Astro/Starlight versions in site/README.md.Tested
npm test: 596/596 (unchanged suite)site: npm run check:exampleson this commit alone: 1 marked example, 0 failed; negative cases (unknown profile, unknown option, marker without block, expectation with stray errors) fail as intendedFirst of two PRs; #28 (D22) builds on it.