test: CI suite, shared lib/, and release docs (no version bump)#2
Merged
Conversation
Extract shared validation and parsers to lib/, add 42 automated tests with GitHub Actions, stricter account name sanitization, CHANGELOG, PR template, and release policy. No version bump or user-facing release.
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
Adds an OSS-grade automated test suite, CI on
main, sharedlib/modules, and contributor docs so we can merge safely without cutting a release for every PR.What changed
lib/—security.js,git-parse.js,dormant.js(shared withserver.jsand tests)test/— 42 tests: sanitization, git parsers, dormant logic, API integration (isolated temp workspace viaGITDOCK_TEST).github/workflows/test.yml— runsnpm teston push/PR tomainserver.js— imports fromlib/; test mode; stricter account name validation (rejects names that need character stripping)CHANGELOG.md(Unreleased), PR template, release policy inCONTRIBUTING.mdRelease
No GitHub Release or version bump. This is infrastructure and a small security hardening on account names. Binaries stay at v1.2.0 until a future user-visible release (e.g. v1.3.0).
Test plan
npm install && npm test(42 passing)main