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 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`.