forked from mastra-ai/mastra
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 908 Bytes
/
test-client-react.yml
File metadata and controls
34 lines (28 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Client React SDK Tests
on:
pull_request:
branches: [main, 0.x]
paths:
- 'client-sdks/react/**'
- 'packages/core/**'
- 'packages/server/**'
- 'packages/deployer/**'
- '.github/workflows/test-client-react.yml'
permissions:
contents: read
pull-requests: read
jobs:
test:
# Only run on the main repository, not on forks
if: ${{ github.repository == 'mastra-ai/mastra' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup pnpm and Node.js
uses: ./.github/actions/setup-pnpm-node
- name: Build core dependencies
run: pnpm turbo build --filter "@mastra/core" --filter "@mastra/server" --filter "@mastra/deployer" --filter "mastra"
- name: Run Client React SDK tests
run: pnpm --filter "@mastra/react" test
env:
NODE_OPTIONS: '--max_old_space_size=8096'