Add GitHub Actions CI and Release workflows - #3
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么
LexSource 是 Bun + TypeScript 情报台,仓库里还没有 CI / 发版。需要在 push/PR 上挡住
bun test回归,并在打v*tag 时产出可部署归档,而不是抄跨平台二进制 / Homebrew 矩阵。做了什么
.github/workflows/ci.yml:mainpush + PR,contents: read,ubuntu-latest / 15min,Bun 1.3.14,bun install --frozen-lockfile,bun test,以及不打外网的ingest-fixturessmoke。.github/workflows/release.yml:v*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 矩阵。验证
bun test:42 pass / 0 failLEXSOURCE_DB=... bun src/cli.ts ingest-fixtures:3 ingested / 0 failed