From a7eea056944afb4c4310f4e54cc921eb5ae74a09 Mon Sep 17 00:00:00 2001 From: Lum1104 Date: Mon, 30 Mar 2026 11:16:57 +0800 Subject: [PATCH] ci: add PR workflow for build, test, and type-check Runs on every pull_request: builds core and skill packages (which also serves as TypeScript type-check), then runs all Vitest tests. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..82135cb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + pull_request: + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + cache-dependency-path: pnpm-lock.yaml + + - name: Install dependencies + run: pnpm install + + - name: Build core + run: pnpm --filter @understand-anything/core build + + - name: Build skill + run: pnpm --filter @understand-anything/skill build + + - name: Test core + run: pnpm --filter @understand-anything/core test + + - name: Test skill + run: pnpm --filter @understand-anything/skill test