Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | name: Context7 Retrieval Check |
| 2 | |
| 3 | # Run after the owner confirms a production deploy and completed index refresh. |
| 4 | # Never part of unit tests, and never refreshes or changes library settings. |
| 5 | on: |
| 6 | workflow_dispatch: |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | jobs: |
| 12 | retrieval: |
| 13 | runs-on: ubuntu-latest |
| 14 | timeout-minutes: 20 |
| 15 | steps: |
| 16 | - name: Checkout code |
| 17 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 18 | - name: Set up repository toolchain |
| 19 | uses: ./.github/actions/setup-node-pnpm-bun |
| 20 | with: |
| 21 | enable-caching: 'false' |
| 22 | - name: Test runner offline |
| 23 | run: node --test test/context7-check.test.mjs |
| 24 | - name: Check public retrieval |
| 25 | env: |
| 26 | CONTEXT7_API_KEY: ${{ secrets.CONTEXT7_API_KEY }} |
| 27 | run: node scripts/context7-check.mjs --output context7-baseline.json |
| 28 | - name: Retain retrieval evidence even on failure |
| 29 | if: always() |
| 30 | uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 |
| 31 | with: |
| 32 | name: context7-${{ github.sha }} |
| 33 | path: context7-baseline.json |
| 34 | if-no-files-found: warn |
| 35 | retention-days: 30 |