ClaudeChatGPTCopilotDeveloper & CodeIntermediate
CI/CD Pipeline (GitHub Actions)
Set up a complete CI/CD pipeline with GitHub Actions including build, test, lint, deploy, and environment management.
Updated June 2026
When to Use
When setting up CI/CD for the first time in a project
To automate tests that the team forgets to run
When standardizing the deploy process
When manual deploys cause problems
How to Use This Prompt
1
Copy the prompt below into Claude or ChatGPT
2
Describe the project, stack, and deploy process
3
Receive the complete GitHub Actions workflow
4
Configure it in the repository (.github/workflows/)
Example Input
Project: Node.js API (Express + TypeScript) Tests: Jest (unit + integration) Linting: ESLint + Prettier Deploy: Docker → AWS ECS Branches: main = prod, develop = staging DB: PostgreSQL (needs migration with Prisma)
Expected Output
name: CI
on:
pull_request:
branches: [main, develop]
jobs:
lint:
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 format:check
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: test
ports: ['5432:5432']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npx prisma migrate deploy
env:
DATABASE_URL: postgresql://postgres:test@localhost:5432/test
- run: npm test -- --coverage