Skip to content

Add GitHub Actions CI and Release workflows - #3

Merged
jamiesun merged 1 commit into
mainfrom
jamiesun-ci-and-release-workflows
Aug 16, 2026
Merged

Add GitHub Actions CI and Release workflows#3
jamiesun merged 1 commit into
mainfrom
jamiesun-ci-and-release-workflows

Conversation

@jamiesun

Copy link
Copy Markdown
Contributor

为什么

LexSource 是 Bun + TypeScript 情报台,仓库里还没有 CI / 发版。需要在 push/PR 上挡住 bun test 回归,并在打 v* tag 时产出可部署归档,而不是抄跨平台二进制 / Homebrew 矩阵。

做了什么

  • .github/workflows/ci.ymlmain push + PR,contents: read,ubuntu-latest / 15min,Bun 1.3.14,bun install --frozen-lockfilebun test,以及不打外网的 ingest-fixtures smoke。
  • .github/workflows/release.ymlv* tag + workflow_dispatch。先跑同样测试;仅 tag 时用 softprops/action-gh-release@v2 发 Release(generate_release_notes: true),并附 dist/lexsource-${TAG}.tar.gz + SHA256SUMS。归档含 package.json bun.lock src tests docs AGENTS.md README.md tsconfig.json,不含 node_modules。无 Docker / Homebrew / 多 OS 矩阵。
  • README 补「CI / 发版」两行;AGENTS.md 补「改 CI 或依赖后必须本地 bun test」;roadmap「完成的样子」写明 CI 必须挡住回归。CI 不抬成一级业务功能,验收矩阵未改。

验证

  • 本地 bun test:42 pass / 0 fail
  • LEXSOURCE_DB=... bun src/cli.ts ingest-fixtures:3 ingested / 0 failed
  • 归档文件列表与 YAML 解析已核对

Bun-only test and tag release for the TypeScript web desk. CI runs bun test plus an offline fixture smoke; tagged v* releases ship a source archive without node_modules.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jamiesun
jamiesun merged commit d42e776 into main Aug 16, 2026
1 check 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