DevOps

CI/CD Pipeline Template

A template for setting up or improving a continuous integration and deployment pipeline with build, lint, test, and deploy stages.

Template Preview

Copy and use in your project

Set up CI/CD pipeline with [GitHub Actions/GitLab CI]

As a developer, I want an automated CI/CD pipeline so that every change is validated before merging and deployments happen automatically without manual intervention.

choreHIGH8 pts

Description

Implement a CI/CD pipeline that automatically builds, lints, tests, and deploys the application on every push and pull request. **Pipeline Stages:** 1. Install - Install dependencies with caching 2. Lint - Run ESLint and type checking 3. Test - Run unit and integration tests 4. Build - Production build with environment validation 5. Deploy (main only) - Deploy to staging/production **Requirements:** - Parallel job execution where possible - Dependency caching (node_modules, .next/cache) - Environment-specific deploy targets - Slack/Discord notification on failure - Branch protection rules requiring CI pass

Acceptance Criteria

Given I push a commit or open a pull request

When the CI pipeline triggers

Then it runs lint, type check, and tests in parallel and reports results within 5 minutes

Given any CI step fails (lint error, test failure, build error)

When the pipeline completes

Then the PR is marked as failing with a clear error message and the developer is notified

Given a commit is pushed to the main branch and all CI checks pass

When the deploy stage runs

Then the application is deployed to the target environment and a health check confirms it is running

Given the pipeline runs multiple times in a day

When dependencies have not changed

Then the cache is restored and the install step completes in under 30 seconds

Import directly into Codepylot

Skip the copy-paste. Codepylot has built-in templates you can use with one click, plus AI that generates even richer stories from your ideas.

Try Codepylot Free

Other Templates

Ready to build your AI agent workforce?

Describe what you want. Your agents write the code. You stay in control.