Skip to content

ci: 加入 GitHub Actions(typecheck + lint) - #1

Merged
kiresakura merged 2 commits into
mainfrom
ci/add-github-actions
Jun 30, 2026
Merged

ci: 加入 GitHub Actions(typecheck + lint)#1
kiresakura merged 2 commits into
mainfrom
ci/add-github-actions

Conversation

@kiresakura

Copy link
Copy Markdown
Owner

目的

讓 GitHub 倉庫的 commit / PR 出現 CI 綠勾勾。目前 repo 沒有任何 GitHub Actions workflow。

內容

新增 .github/workflows/ci.yml,在 push / PR 到 main 時執行專案自身的 pre-push gate:

  • npm ci — 依 lockfile 乾淨安裝
  • npx prisma generate — 產生 Prisma client 型別(tsc 需要)
  • npm run checktsc --noEmit && eslint

設計取捨

  • 只跑 typecheck + lint:與 .githooks/pre-push 一致,已在本地驗證通過。
  • 刻意不含 next build 與 full-system test:兩者需要 Postgres 及多個 Telegram/LLM secrets,放進 CI 會不穩定、容易變紅叉。日後若要可再加獨立 job。

🤖 Generated with Claude Code

kiresakura and others added 2 commits June 30, 2026 22:57
Runs the project's own pre-push gate (`npm run check` = tsc --noEmit +
eslint) on every push/PR to main. Installs deps via `npm ci` and
generates the Prisma client first so type information is available.
Build and full-system tests are intentionally excluded — they require a
Postgres DB plus several Telegram/LLM secrets and would make CI flaky.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
actions/checkout@v4 and setup-node@v4 target the deprecated Node 20
runner; @v5 runs on Node 24. Avoids a future hard failure when GitHub
removes Node 20 from runners.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kiresakura
kiresakura merged commit e4e6ae2 into main Jun 30, 2026
1 check passed
@kiresakura
kiresakura deleted the ci/add-github-actions branch June 30, 2026 15:01
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