Skip to content

Add CI workflow for backend tests and website lint/build - #18

Merged
charles2ke merged 1 commit into
mainfrom
copilot/live-authenticated-connectors
Sep 5, 2026
Merged

Add CI workflow for backend tests and website lint/build#18
charles2ke merged 1 commit into
mainfrom
copilot/live-authenticated-connectors

Conversation

Copilot AI commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a CI workflow so the backend test suite and the website lint/build run automatically. Previously the only committed workflow was deploy-pages.yml, which just built and deployed website/ — nothing in CI ran npm test or npm run lint, so regressions were only caught locally or at deploy time.

Changes

.github/workflows/ci.yml (new)

  • Triggers on push to main, all pull requests, and workflow_dispatch.
  • permissions: contents: read only.
  • Per-branch concurrency group with cancel-in-progress: true so superseded runs are cancelled.
  • Backend tests job: Node 22, npm cache keyed on root package-lock.json, npm ci + npm test.
  • Website lint and build job: Node 22, npm cache keyed on website/package-lock.json, npm ci, npm run lint (Oxlint), and GITHUB_PAGES=true npm run build — mirroring what the Pages deployment builds, so breakage surfaces on the PR instead of at deploy time.

README.md

  • Added ci.yml to the project layout.
  • New Continuous integration section describing both jobs.

Validation

Both jobs' commands were run locally against this branch:

  • npm ci && npm test → 42/42 tests pass
  • cd website && npm ci && npm run lint → Oxlint clean, 0 vulnerabilities
  • cd website && GITHUB_PAGES=true npm run build → build succeeds (200.37 kB JS / 63.27 kB gzip)

CodeQL (actions) reported 0 alerts.

Notes

No Playwright tests exist in this repository (no Playwright config, dependency, or spec files), and this change is CI configuration only with no UI surface, so there are no browser-test screenshots to attach. If you'd like end-to-end coverage of the learning website added to CI, that can be a follow-up.

Co-authored-by: charles2ke <6725706+charles2ke@users.noreply.github.com>
@charles2ke
charles2ke marked this pull request as ready for review September 5, 2026 04:56
@charles2ke
charles2ke requested a lite review from Copilot September 5, 2026 04:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The workflow configuration matches existing deployment build settings and uses minimal permissions; only a minor README wording clarification is needed.

Pull request overview

Adds a dedicated GitHub Actions CI workflow so backend tests and the website lint/build run on PRs and pushes to main, shifting regressions from “deploy-time/local-only” to “caught in CI”.

Changes:

  • Added .github/workflows/ci.yml with two jobs: root npm ci && npm test, and website/ npm ci && npm run lint && npm run build (with GITHUB_PAGES=true).
  • Documented the new CI workflow and behavior in README.md.
File summaries
File Description
.github/workflows/ci.yml New CI workflow to run backend tests and website lint/build on PRs and main.
README.md Documents the CI workflow and adds it to the project layout section.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md
`GITHUB_PAGES=true npm run build` inside `website/`, matching what the Pages
deployment builds.

Runs are grouped per branch and superseded runs are cancelled automatically.
@charles2ke
charles2ke merged commit b8a3474 into main Sep 5, 2026
8 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.

3 participants