ci: strengthen pull request and release gates

This commit is contained in:
DrSmoothl committed 2026-07-31 15:47:07 +08:00
1 parent f6e2410dae
commit da07864811
2 files changed
+106 -18

No files matched your search

+38
View File
@@ -9,7 +9,45 @@ permissions:
contents: write
jobs:
preflight:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 10.28.0
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run all package tests
run: pnpm test
- name: Type check all packages
run: pnpm typecheck
- name: Verify generated action catalog is up to date
run: |
catalog_status="$(git status --porcelain=v1 --untracked-files=all -- packages/mcp/src/generated)"
if [ -n "$catalog_status" ]; then
git diff -- packages/mcp/src/generated
printf '%s\n' "$catalog_status"
echo '::error::Generated action catalog is stale. Run `pnpm --filter @snowluma/mcp gen` and commit packages/mcp/src/generated/.' >&2
exit 1
fi
build:
needs: preflight
strategy:
fail-fast: false
matrix: