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

next
yml 52 lines 1.77 KB
Raw
1 name: Apollo Contract Nightly
2
3 # Checks that staging Apollo still returns responses the CLI's client accepts:
4 # a fixed set of reads the CLI makes, validated against the response schemas
5 # the CLI ships with (`@composio/client/effect/schemas`). Read-only, no retries.
6 # See ts/packages/cli/scripts/apollo-contract.ts for the cases.
7
8 on:
9 schedule:
10 - cron: '0 5 * * *'
11 workflow_dispatch:
12
13 concurrency:
14 group: ${{ github.workflow }}
15 cancel-in-progress: false
16
17 permissions:
18 contents: read
19
20 jobs:
21 contract:
22 name: Staging Apollo contract
23 runs-on: ubuntu-latest
24 timeout-minutes: 15
25 steps:
26 - name: Checkout Code
27 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28
29 - name: Setup Node.js, pnpm, Bun
30 uses: ./.github/actions/setup-node-pnpm-bun
31
32 - name: Install dependencies
33 run: pnpm install --frozen-lockfile --ignore-scripts
34
35 - name: Check Apollo responses against client schemas
36 working-directory: ts/packages/cli
37 env:
38 COMPOSIO_BASE_URL: https://staging-backend.composio.dev
39 COMPOSIO_API_KEY: ${{ secrets.COMPOSIO_API_KEY }}
40 COMPOSIO_USER_API_KEY: ${{ secrets.COMPOSIO_USER_API_KEY }}
41 run: bun scripts/apollo-contract.ts
42
43 - name: Send Slack Notification (Failure)
44 if: failure() && github.event_name == 'schedule'
45 uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0
46 with:
47 webhook: ${{ secrets.SLACK_POD_DX_WEBHOOK_URL }}
48 webhook-type: incoming-webhook
49 payload: |
50 {
51 "text": "⚠️ Staging Apollo no longer matches the CLI's client schemas.\n*Run:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
52 }