Files
copilotkit__copilotkit/.github/workflows/test_unit-v1.yml

62 lines
1.4 KiB
YAML

name: test / unit / v1
on:
push:
branches: [main]
paths-ignore:
- "docs/**"
- "README.md"
- "examples/**"
- ".github/workflows/demos_preview.yml"
- ".github/workflows/release.yml"
- "src/v1.x/packages/**/package.json"
- "src/v1.x/packages/**/CHANGELOG.md"
- "src/v1.x/.changeset/**"
pull_request:
branches: [main]
paths-ignore:
- "docs/**"
- "README.md"
- "examples/**"
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow on'
required: true
default: 'main'
type: string
jobs:
v1:
name: "unit / v1.x"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch || github.ref }}
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: "10.13.1"
- name: Install uv
uses: astral-sh/setup-uv@v6
- 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: npm run test:classic