Start a fresh conversation. Replace the highlighted placeholders.
Use setting-up-ci to add a GitHub Actions CI workflow for [repository] that runs the project's deterministic install, lint, type-check, tests, and build; do not add deployment steps.
Required inputs
[repository]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: setting-up-cidescription: Set up a GitHub Actions CI/CD pipeline with linting, testing, type-checking, and deployment steps.
Setup CI (GitHub Actions)
Use this skill when the user asks to set up CI, continuous integration, a build pipeline, or GitHub Actions.
Steps
Detect the project structure — check for package.json (Node.js), requirements.txt / pyproject.toml (Python), go.mod (Go), or monorepo tools like Turborepo.
Create .github/workflows/ci.yml
For a Node.js project:
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm test
- run: npm run build
Add type-checking — if typecheck script doesn't exist in package.json, add "typecheck": "tsc --noEmit".
Add caching — the actions/setup-nodecache option handles node_modules. For monorepos with Turborepo, add remote caching or actions/cache for .turbo.
Add matrix testing (optional) — if the user needs to test across Node versions or OS:
strategy:
matrix:
node-version: [18, 20, 22]
Add deployment step (optional) — if requested, add a deploy job that runs only on main pushes, gated by the build job succeeding: