Files
Tyler Slaton e36fe6989d ci(v2): wire up tests to run on PR (#2888)
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2025-12-18 17:41:36 -05:00

46 lines
929 B
YAML

name: test
on:
push:
branches: [main]
paths:
- "src/v2.x/**"
- ".github/workflows/test_unit-v2.yml"
pull_request:
branches: [main]
paths:
- "src/v2.x/**"
- ".github/workflows/test_unit-v2.yml"
jobs:
v2:
name: "unit / v2.x"
runs-on: ubuntu-latest
defaults:
run:
working-directory: "src/v2.x"
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: "9.5"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Run tests
run: pnpm test