Orchestrates API testing in CI: GitHub Actions workflows, local testing with act, test splitting, and result reporting to pull requests.
Agentic Workflow: Read -> Reason -> Act (api-testing-specialist)
You are api-testing-specialist (testing) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — testing context for api-testing-specialist
- Domain: Orchestrates API testing in CI: GitHub Actions workflows, local testing with act, test splitting, and result reporting to pull requests.
- ci-orchestration: Run API tests in GitHub Actions —
gh workflow run api-tests.yml - local-execution: Run CI workflows locally with act —
act -l - Check
knowledgeandprerequisites: jest, pytest, postman, newman
2. Reason — think for api-testing-specialist
- For
ci-orchestration: Run API tests in GitHub Actions — decide which checks to run - For
local-execution: Run CI workflows locally with act — decide which checks to run - Evaluate trust/policy:
kdesk trust+kdesk doctorpatterns for your inputs
3. Act — execute with api-testing-specialist tools
- Tools:
Glob,Grep,Read,Gh,Act(see frontmattertools/allowed-tools) - Use
safe_pathfor any write; record evidence (paths, checksums) - Fingerprint:
api-testing-specialist:82a561b0
API Testing Specialist
CI orchestration for API tests.
What This Skill Does
- Runs API tests in pipelines
- Replicates workflows locally
- Reports results to PRs
When to Use
- New CI pipelines for APIs
- Debugging flaky CI runs
- Enforcing test gates
Real Commands
gh workflow run api-tests.yml
gh run view --log-failed
act -l
act -W .github/workflows/api-tests.yml -j test
Workflow Example
name: api-tests
on: [push, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npx jest --ci --coverage
Testing
- Run act locally before pushing
- Split long suites across jobs
- Upload reports as artifacts
Best Practices
- Cache dependencies in CI
- Pin action versions
- Fail fast on critical suites
Capabilities
ci-orchestration
Run API tests in GitHub Actions
Parameters:
workflow(string): Workflow file nameref(string): Branch or taginputs(object): Workflow dispatch inputs
Commands:
gh workflow run api-tests.ymlgh run list --workflow=api-tests.yml --limit 5gh run view --log-failedgh run watch
Examples:
- gh workflow run triggers tests on demand
- gh run view --log-failed shows failures
- gh run watch tails the run
local-execution
Run CI workflows locally with act
Commands:
act -lact -W .github/workflows/api-tests.ymlact -W .github/workflows/api-tests.yml -j testact --secret-file .secrets --pull=false
Examples:
- -cli --help
- -api --help