| name | groq-ci-integration |
| description | Configure Groq CI/CD integration with GitHub Actions, testing, and model validation.
Use when setting up automated testing, configuring CI pipelines,
or integrating Groq tests into your build process.
Trigger with phrases like "groq CI", "groq GitHub Actions",
"groq automated tests", "CI groq".
|
| allowed-tools | Read, Write, Edit, Bash(gh:*) |
| version | 1.11.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","groq","testing","ci-cd"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Groq CI Integration
Overview
Set up CI/CD pipelines for Groq integrations with unit tests (mocked), integration tests (live API), and model deprecation checks. Groq's fast inference makes live integration tests practical in CI -- a completion round-trip takes < 500ms.
Prerequisites
- GitHub repository with Actions enabled
- Groq API key stored as GitHub secret
- vitest or jest for testing
Instructions
The integration has four moving parts. Read this section for the high-level
flow, then drill into the reference files for the full copy-paste blocks — the
complete workflows and configuration live in
references/implementation.md and the full test
suite in references/examples.md.
Step 1: GitHub Actions workflow
Write .github/workflows/groq-tests.yml with three jobs: unit-tests (mocked
groq-sdk, runs on every PR, no key), integration-tests (live API,
push-to-main only, guarded by if: github.event_name != 'pull_request'), and
a weekly model-check cron that diffs the model IDs the code references against
Groq's live model list. The job skeleton:
on:
push: { branches: [main] }
pull_request: { branches: [main] }
schedule:
- cron: "0 6 * * 1"
jobs:
unit-tests:
integration-tests:
model-check:
Step 2: Configure secrets
Store a CI-scoped key with gh secret set GROQ_API_KEY --body "gsk_your_ci_key_here". Keep it separate from the production key so it rotates
and tracks CI usage independently.