Skip to content

Add a Check & Build GitHub Actions workflow - #12

Merged
kaishin merged 1 commit into
mainfrom
repo-sync/build/ci-workflow
Oct 12, 2026
Merged

kaishin merged 1 commit into
mainfrom
repo-sync/build/ci-workflow

Conversation

@kaishin

@kaishin kaishin commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The repository has no continuous integration. Formatting regressions, type errors, and build failures are only caught locally, so a broken commit can land on main unnoticed. The groundwork already shipped in earlier migrations: package.json defines the format:check and check scripts, pins packageManager: pnpm@11.22.0 (read automatically by pnpm/action-setup), and sets engines.node to >=22.19.0, which Node 24 satisfies.

Solution

Add .github/workflows/test.yml, a Test workflow with a single Check & Build job that runs on pull requests to and pushes to main:

  1. actions/checkout@v7
  2. pnpm/action-setup@v6 — reads the pinned pnpm version from package.json
  3. actions/setup-node@v7 — Node 24 with pnpm cache
  4. pnpm install --frozen-lockfile
  5. Three separate steps — pnpm format:check, pnpm check, pnpm build — each with if: ${{ !cancelled() }}, so one run reports every failure at once instead of stopping at the first.

Scope and exclusions

  • No site code, copy, styling, or build configuration is touched; the workflow mirrors the site's existing scripts exactly.
  • The workflow does not deploy, run on branch pushes other than main, or add new checks beyond the three commands already used to validate this repository.
  • TODO.md: the corresponding Architecture Sync checkbox is marked complete in the same commit.

Validation

  • pnpm format:check — passed (covers the new YAML file)
  • pnpm check — 0 errors, 0 warnings
  • pnpm build — passed, dist/index.html and sitemap-index.xml generated
  • The Test workflow is expected to run green on this pull request itself.

No pre-existing check failures; all three commands pass cleanly on this branch.


Built by: pi harness, model zai/glm-5.3-flash

@netlify

netlify Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for 4rays ready!

Name Link
🔨 Latest commit f4d9c25
🔍 Latest deploy log https://app.netlify.com/projects/4rays/deploys/6acc863077979b00087385c9
😎 Deploy Preview https://deploy-preview-12--4rays.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T07:06:59.265783Z f4d9c25 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kaishin
kaishin merged commit c49c5a7 into main Oct 12, 2026
5 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.

1 participant