feat(ci): add validate-registry script for registry consistency CI - #32
Merged
Conversation
Validates internal consistency of @theholocron/registry-doc: - All required fields present (slug, package, docsUrl, npmUrl, githubUrl) - No duplicate package names across getters - slug matches the record key Runs as part of the Lint workflow via the hashFiles() gate in lint.yml. Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #32 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 20 20
Lines 105 105
Branches 18 18
=========================================
Hits 105 105
|
Signed-off-by: Newton <vj2kp2hfh4@privaterelay.appleid.com> Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
The lint.yml step runs 'node scripts/validate-registry.mjs' on a fresh CI checkout where dist/ doesn't exist. Self-build via pnpm if needed. Signed-off-by: Newton <vj2kp2hfh4@privaterelay.appleid.com> Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
Contributor
Author
|
🎉 This PR is included in version 1.7.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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.
Adds
scripts/validate-registry.mjswhich validates internal consistency of@theholocron/registry-doc: no duplicate package names across getters, all required fields present, slug matches key. Runs via thehashFiles()gate inlint.yml.