Add test suite and development infrastructure#1
Merged
Conversation
Extract pure logic into src/lib modules, move app script to src/app/main.js, add 23 unit tests, npm test scripts, and GitHub Actions CI. Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
- CI: syntax check, entrypoint verification, workflow_dispatch - CD: deploy index.html and src/ to Pages after tests on main - Add npm run ci script and document pipelines in README Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
- preview.yml posts a live UI link on each pull request - deploy.yml publishes production to gh-pages branch root - Document one-time Pages setup and local preview fallback Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
|
GitHub Pages is unavailable on free private repos. Upload a UI build artifact per PR and comment with gh pr checkout + serve steps. Gate hosted deploy behind ENABLE_GITHUB_PAGES repo variable. Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
UI previewGitHub Pages is disabled for this organization, so there is no hosted preview URL yet. Run locally (recommended)gh pr checkout 1
npm install
npx --yes serve .Open the URL Download build
Org admins: enable GitHub Pages for the organization, then set repo variable |
Re-enable gh-pages PR preview URLs and production CD on main. Document one-time Pages setup for public repositories. Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
Pages is blocked by organization policy, not repo visibility. Upload PR UI artifacts and document local preview until admins enable Pages. Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
This reverts commit a011068.
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
Sets up testing and CI/CD for the TaskBoard prototype.
src/lib/modulessrc/app/main.js(ES module)mainENABLE_GITHUB_PAGES=trueView UI on a PR (org Pages disabled)
Or download artifact
pr-<number>-uifrom the PR Preview workflow run.Org admins must enable GitHub Pages for the organization before hosted URLs work.
Verify locally