Skip to content

Add test suite and development infrastructure#1

Merged
snktshrma merged 8 commits into
mainfrom
cursor/testing-infrastructure-8f2e
Jun 15, 2026
Merged

Add test suite and development infrastructure#1
snktshrma merged 8 commits into
mainfrom
cursor/testing-infrastructure-8f2e

Conversation

@snktshrma

@snktshrma snktshrma commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Sets up testing and CI/CD for the TaskBoard prototype.

  • Extracts pure logic into src/lib/ modules
  • Moves app script to src/app/main.js (ES module)
  • 23 Vitest unit tests
  • CI on every PR and push to main
  • PR Preview uploads UI artifact + comments local preview steps
  • CD optional: only if org enables Pages and ENABLE_GITHUB_PAGES=true

View UI on a PR (org Pages disabled)

gh pr checkout <PR_NUMBER>
npm install
npx --yes serve .

Or download artifact pr-<number>-ui from the PR Preview workflow run.

Org admins must enable GitHub Pages for the organization before hosted URLs work.

Verify locally

npm install
npm run ci
Open in Web Open in Cursor 

cursoragent and others added 4 commits June 15, 2026 14:42
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-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-15 15:15 UTC

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>
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

UI preview

GitHub 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 serve prints (usually http://localhost:3000).

Download build

  1. Open this workflow run on the Actions tab
  2. Download artifact pr-1-ui
  3. Run npx --yes serve <path-to-folder>

Org admins: enable GitHub Pages for the organization, then set repo variable ENABLE_GITHUB_PAGES=true and configure Pages from the gh-pages branch.

cursoragent and others added 3 commits June 15, 2026 14:59
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>
@snktshrma snktshrma merged commit e1334bf into main Jun 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants