mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
e36fe6989d
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
46 lines
929 B
YAML
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
|