github-actions-ci
Installation
SKILL.md
GitHub Actions CI
Overview
A good pipeline runs the same checks a developer runs locally, fails fast with a clear message, and finishes in minutes. Build it from the project's real commands and keep it secure by default.
Method
- Discover the checks the project already has: install, lint, typecheck, test, build commands from
package.json,Makefile,pyproject.toml,pom.xml,go.mod. Note runtime versions and services the tests need (Postgres, Redis). - Write
.github/workflows/ci.ymlfrom the template below. Add a deploy workflow only if asked, and only onmainafter CI passes. - Validate with
actionlintif available. Push to a branch and watch the run:gh run watch. - Debugging a failing run:
gh run view <id> --log-failed, reproduce the failing command locally with the same runtime version, compare environment variables and service versions.
Template
name: CI