Coding

CI/CD Pipeline Generator

Describe your tech stack and deployment target to get a complete GitHub Actions workflow for testing, building, and deploying your app.

By The Prompt Black Magic Team

Copy the prompt and fill in your tech stack and hosting provider details.

Generate a GitHub Actions CI/CD workflow that does the following:

1. Triggers on push to main and pull requests
2. Runs linting and formatting checks
3. Runs the full test suite
4. Builds the application
5. Deploys to [HOSTING PROVIDER] on success (only on main branch)

Tech stack: [YOUR STACK]
Node version: [VERSION]
Test command: [COMMAND]
Build command: [COMMAND]

Include:
- Caching for dependencies to speed up builds
- Environment variable handling for secrets
- Separate jobs for test and deploy
- Status badges markdown for the README
- Comments explaining each step

Make it production-ready and follow GitHub Actions best practices.