feat(supabase): 共享 Supabase 本地测试路由(拆自 PR #40) - #48
Merged
Conversation
- ci.yml:导出 DB_URL 到 SHADOW_MATE_TEST_DB_URL,支持共享数据库测试 - test-delete-account-guard.mjs:加载 .env.local 以支持本地共享链路测试 - PULL_REQUEST_TEMPLATE / CONTRIBUTING:按改动范围选择测试层级的最小充分约定
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
变更说明
从混合分支
feat/email-template-design(PR #40)中拆出的共享 Supabase 方向:只含共享 Supabase 本地测试路由与测试层级约定的净新增内容。原 PR #40 把邮件与共享 Supabase 两件事混在一个分支,本 PR 与feat/email-templates分工,文件零重叠。内容
scripts/serve-shared-functions.mjs、scripts/start-shared-supabase.mjs、scripts/test-shared-db.mjs(本地测试走共享 Supabase 实例路由)scripts/test-delete-account-guard.mjs、新增tests/unit/shared-db-test-script.test.jspackage.json新增supabase:local:*脚本,test:db/test:functions改走共享路由README.md补充共享 Supabase 本地测试说明CONTRIBUTING.md、.github/PULL_REQUEST_TEMPLATE.md、.github/workflows/ci.yml同步测试层级约定协调说明
shared-supabase-policy.yml在 main 上已由 PR #35 合并,本分支保留 main 已合并版本,未带入分支内的并行草稿(草稿较旧,且阻止db query --linked的更严格规则是否生效建议另走控制面评审)。变更类型
检查清单
npm run check通过npm run test:unit通过(74/74).env、.vercel、secret key 或个人数据npm run public:check(npm run check内含)与原 PR #40 的关系
原 PR #40 内容已完全被本 PR +
feat/email-templates两个 PR 覆盖,将关闭。旧分支feat/email-template-design保留为备份,不删除。