skills/testing/testing-ci/SKILL.md
CI/CD: GitHub Actions workflows, parallel sharding, flaky quarantine, junit XML/Allure, coverage gates
npx skillsauth add alphaonedev/openclaw-graph testing-ciInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill automates CI/CD pipelines using GitHub Actions, focusing on testing workflows. It handles parallel test execution, quarantines flaky tests, generates reports in JUnit XML or Allure formats, and enforces coverage gates to ensure code quality in repositories.
Use this skill when setting up or optimizing CI for GitHub repos, especially for projects with large test suites (e.g., >1000 tests), to reduce run times via parallel sharding. Apply it for flaky test management in unstable environments or when integrating coverage checks before merges.
matrix strategy in YAML.junit-report or Allure for detailed test insights.$GITHUB_TOKEN.Invoke this skill via OpenClaw CLI commands prefixed with openclaw testing-ci. For API usage, send requests to the OpenClaw endpoint (e.g., POST /api/skills/testing-ci). In code, embed it in scripts by checking for the skill ID and passing parameters like workflow names or test shards. Always set environment variables for secrets, such as $GITHUB_TOKEN, before execution. For parallel testing, define shards in your workflow YAML and trigger runs programmatically.
openclaw testing-ci run --workflow my-repo/tests.yml --parallel 4 --token $GITHUB_TOKENopenclaw testing-ci quarantine --pattern "flaky-*" --report junit.xml{"name": "build", "matrix": {"shards": [1,2,3,4]}}jobs:
test:
strategy:
matrix:
shard: [1, 2, 3, 4]
run: npm test --shard=${{ matrix.shard }}/4
if grep -q "flaky" junit.xml; then
openclaw testing-ci quarantine --file junit.xml
fi
Integrate with GitHub by providing a personal access token in $GITHUB_TOKEN for API calls. For JUnit/Allure reports, ensure your workflow outputs XML files and upload them via GitHub Actions artifacts. Use parallel sharding by defining matrices in workflow YAML, then trigger via OpenClaw: openclaw testing-ci dispatch --repo owner/repo --ref main. For coverage gates, integrate with services like Codecov by adding a step in your workflow: curl -Os codecov.io/bash && bash codecov -t $CODECOV_TOKEN. Always validate inputs to avoid errors, such as checking if $GITHUB_TOKEN is set.
Handle workflow failures by checking exit codes in scripts (e.g., if $? != 0, retry with openclaw testing-ci rerun --workflow ID). For API errors, parse responses for status codes (e.g., 401 for auth issues, resolve by verifying $GITHUB_TOKEN). In parallel runs, use sharding to isolate failures; quarantine flaky tests to prevent false negatives. Common issues: Invalid YAML syntax—validate with yamllint before running; coverage gate failures—adjust thresholds via config flags like --gate 75.
openclaw testing-ci run --workflow .github/workflows/tests.yml --parallel 4 --token $GITHUB_TOKEN. This shards tests across 4 runners, reducing execution time from 10m to 3m, and generates a JUnit report for analysis.openclaw testing-ci quarantine --report allure-results.xml --pattern "test_flaky_*". This isolates flaky tests, reruns them, and integrates the Allure report into your GitHub workflow for visual debugging.tools
Root web development: project structure, tooling selection, deployment decisions
development
WebAssembly: Rust/Go/C to WASM, wasm-bindgen, Emscripten, WASM Component Model
development
Vue 3: Composition API script setup, Pinia, Vue Router 4, SFCs, Vite, Nuxt 3
tools
Tailwind CSS 4: utility classes, config, JIT, arbitrary values, darkMode, plugins, shadcn/ui