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
| 1 | name: Examples TypeScript SDK |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [master, next, main] |
| 6 | paths: |
| 7 | - 'ts/examples/**' |
| 8 | - 'ts/packages/core/**' |
| 9 | - 'ts/packages/providers/**' |
| 10 | - '.oxlintrc.json' |
| 11 | - 'package.json' |
| 12 | - '.github/actions/setup-node-pnpm-bun/action.yml' |
| 13 | - '.github/workflows/ts.examples.yml' |
| 14 | - 'mise.toml' |
| 15 | - 'mise.lock' |
| 16 | - 'pnpm-workspace.yaml' |
| 17 | - 'pnpm-lock.yaml' |
| 18 | - 'turbo.jsonc' |
| 19 | pull_request: |
| 20 | branches: [master, next, main] |
| 21 | paths: |
| 22 | - 'ts/examples/**' |
| 23 | - 'ts/packages/core/**' |
| 24 | - 'ts/packages/providers/**' |
| 25 | - '.oxlintrc.json' |
| 26 | - 'package.json' |
| 27 | - '.github/actions/setup-node-pnpm-bun/action.yml' |
| 28 | - '.github/workflows/ts.examples.yml' |
| 29 | - 'mise.toml' |
| 30 | - 'mise.lock' |
| 31 | - 'pnpm-workspace.yaml' |
| 32 | - 'pnpm-lock.yaml' |
| 33 | - 'turbo.jsonc' |
| 34 | |
| 35 | concurrency: |
| 36 | group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} |
| 37 | cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
| 38 | |
| 39 | permissions: |
| 40 | contents: read |
| 41 | |
| 42 | jobs: |
| 43 | examples: |
| 44 | name: Examples TypeScript SDK |
| 45 | runs-on: ubuntu-latest |
| 46 | |
| 47 | steps: |
| 48 | - name: Checkout Code |
| 49 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 50 | |
| 51 | - name: Setup Node.js, pnpm, Bun |
| 52 | uses: ./.github/actions/setup-node-pnpm-bun |
| 53 | with: |
| 54 | enable-turbo-cache: 'true' |
| 55 | |
| 56 | - name: Install Dependencies |
| 57 | run: pnpm install --frozen-lockfile |
| 58 | |
| 59 | # Examples depend on the built @composio/* workspace packages for type |
| 60 | # resolution and the Workers bundle. turbo typecheck also builds these via |
| 61 | # ^build, but building explicitly keeps the wrangler step self-contained. |
| 62 | - name: Build SDK packages |
| 63 | run: pnpm run build:packages |
| 64 | |
| 65 | - name: Typecheck examples |
| 66 | run: pnpm run typecheck:examples |
| 67 | |
| 68 | - name: Lint examples |
| 69 | run: pnpm run lint:examples |
| 70 | |
| 71 | - name: Test approval examples and MCP elicitation |
| 72 | run: pnpm --filter approvals-example test |
| 73 | |
| 74 | # Prove the Cloudflare Workers entry bundles without secrets or deploying. |
| 75 | - name: Cloudflare Workers dry-run build |
| 76 | run: pnpm exec turbo cf:dry-run --filter='./ts/examples/*' |