@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 03:37 UTC

next
yml 105 lines 3.25 KB
Raw
1 name: Test Typescript SDK
2
3 on:
4 push:
5 branches: [master, next, main]
6 paths:
7 - '.changeset/**'
8 - 'ts/**'
9 - '.github/actions/setup-node-pnpm-bun/action.yml'
10 - '.github/workflows/ts.release.yml'
11 - '.github/workflows/ts.test.yml'
12 - 'mise.toml'
13 - 'mise.lock'
14 - 'package.json'
15 - 'pnpm-workspace.yaml'
16 - 'pnpm-lock.yaml'
17 - 'test/release-workflow.test.ts'
18 - 'test/provider-compatibility.test.ts'
19 - 'turbo.jsonc'
20 pull_request:
21 branches: [master, next, main]
22 paths:
23 - '.changeset/**'
24 - 'ts/**'
25 - '.github/actions/setup-node-pnpm-bun/action.yml'
26 - '.github/workflows/ts.release.yml'
27 - '.github/workflows/ts.test.yml'
28 - 'mise.toml'
29 - 'mise.lock'
30 - 'package.json'
31 - 'pnpm-workspace.yaml'
32 - 'pnpm-lock.yaml'
33 - 'test/release-workflow.test.ts'
34 - 'test/provider-compatibility.test.ts'
35 - 'turbo.jsonc'
36
37 concurrency:
38 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
39 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
40
41 permissions:
42 contents: read
43
44 jobs:
45 test:
46 name: Test Typescript SDK
47 runs-on: ubuntu-latest
48
49 steps:
50 - name: Checkout Code
51 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
52
53 - name: Setup Node.js, pnpm, Bun
54 uses: ./.github/actions/setup-node-pnpm-bun
55 with:
56 enable-turbo-cache: 'true'
57
58 - name: Install Dependencies
59 run: pnpm install --frozen-lockfile
60
61 - name: Check Python helpers codegen is up to date
62 run: pnpm --filter @composio/experimental run check:python-helpers
63
64 # Mirrors the root `test` script (package.json) with the turbo segment
65 # re-scoped to exclude @composio/cli: its suite runs in the dedicated
66 # `test-cli` job below so one flaky CLI test cannot fail the umbrella.
67 # Keep this chain in sync with package.json `scripts.test`.
68 - name: Run Tests
69 run: >-
70 pnpm run test:toolchain
71 && pnpm run test:install-sh
72 && pnpm run test:release-workflow
73 && pnpm run test:issue-triage
74 && pnpm run test:provider-compatibility
75 && pnpm run test:context7
76 && pnpm exec turbo run test --filter='./ts/packages/**' --filter='!@e2e-tests/*' --filter='!@composio/cli'
77 && pnpm run test:examples
78
79 - name: Build packages for consumer compatibility
80 run: pnpm run build:packages
81
82 - name: Check packed provider compatibility
83 run: pnpm run check:provider-compatibility
84
85 test-cli:
86 name: Test CLI (@composio/cli)
87 runs-on: ubuntu-latest
88 timeout-minutes: 20
89
90 steps:
91 - name: Checkout Code
92 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
93
94 - name: Setup Node.js, pnpm, Bun
95 uses: ./.github/actions/setup-node-pnpm-bun
96 with:
97 enable-turbo-cache: 'true'
98
99 - name: Install Dependencies
100 run: pnpm install --frozen-lockfile
101
102 # Package-scoped turbo invocation so the CLI's dependency builds
103 # (test dependsOn ^build) still run before its vitest suite.
104 - name: Run CLI Tests
105 run: pnpm exec turbo run test --filter=@composio/cli