AgentProbe integrates seamlessly with CI/CD pipelines. Tests run against recorded traces — no API keys or LLM calls needed in CI.
# .github/workflows/agent-tests.yml
name: Agent Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx agentprobe run tests/ -f junit -o results.xml
- uses: dorny/test-reporter@v1
if: always()
with:
name: AgentProbe Results
path: results.xml
reporter: java-junit - run: npx agentprobe run tests/ -f junit -o results.xml --badge badge.svg
- uses: actions/upload-artifact@v4
with:
name: test-badge
path: badge.svg - run: npx agentprobe run tests/ -f json -o results.json --compare-baseline
- run: npx agentprobe baseline save results.jsonname: Security
on: [pull_request]
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npx agentprobe run tests/security.yaml --tag security -f junit -o security.xmlagentprobe init --ci github # GitHub Actions
agentprobe init --ci gitlab # GitLab CI
agentprobe init --ci circle # CircleCIMost CI systems support JUnit XML:
agentprobe run tests/ -f junit -o results.xmlWorks with:
- GitHub Actions (
dorny/test-reporter) - GitLab CI (built-in JUnit support)
- CircleCI (
store_test_results) - Jenkins (JUnit plugin)
- Azure DevOps (publish test results task)
Generate standalone HTML reports:
agentprobe run tests/ -f html -o report.htmlUpload as artifact for team review.
Generate shields.io-style SVG badges:
agentprobe run tests/ --badge badge.svgGet notified on failures via Slack, Teams, or Discord:
# .agentproberc.yml
webhooks:
- url: https://hooks.slack.com/services/T00/B00/XXX
events: [failure, regression]Speed up CI by running likely-to-fail tests first:
agentprobe run tests/ --prioritizeOrders: previously failing → change-affected → slowest last.
name: Agent Quality Gate
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
# Run all tests
- run: npx agentprobe run tests/ -f junit -o results.xml --badge badge.svg --prioritize
# Security tests
- run: npx agentprobe run tests/security.yaml --tag security -f json -o security.json
# Regression check
- run: npx agentprobe run tests/ --compare-baseline -f json -o current.json
# Upload results
- uses: dorny/test-reporter@v1
if: always()
with:
name: AgentProbe
path: results.xml
reporter: java-junit
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: |
results.xml
security.json
badge.svg