From 5fee47d2040e1c244468e4aaaab8600ae1343794 Mon Sep 17 00:00:00 2001 From: rockyroed Date: Tue, 7 Oct 2025 10:42:19 +0800 Subject: [PATCH 1/2] chore: separate jobs --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0eb62c6..4d219a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: - main jobs: - ci: + lint: runs-on: ubuntu-latest strategy: matrix: @@ -39,9 +39,44 @@ jobs: - name: Run type checking run: pnpm tsc --noEmit - + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20, 22, 24] + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.18.0 + - name: Install dependencies + run: pnpm install - name: Run build run: pnpm build + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20, 22, 24] + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.18.0 + - name: Install dependencies + run: pnpm install - name: Run tests run: pnpm test:all From 0284c539c60cebc418a58d034e3cfbf44de312c1 Mon Sep 17 00:00:00 2001 From: rockyroed Date: Tue, 7 Oct 2025 10:42:40 +0800 Subject: [PATCH 2/2] chore: update CONTRIBUTING.md --- CONTRIBUTING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f503454..af9a392 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,6 +61,10 @@ These checks run automatically when you commit. Please ensure all files are lint - Run `pnpm build` to check if build has no errors. +## Testing + +- Run `pnpm test:all` to run tests. + ## Submitting a Pull Request 1. Ensure your branch is up to date with `main`.