lemonx
v1.0.6
Published
Scaffold a GitHub Actions AI test-fix loop workflow into your repo
Maintainers
Readme
lemonx
A zero-dependency CLI that scaffolds a GitHub Actions AI test-fix loop workflow into your project, and updates your README with setup instructions.
Usage
Run from the root of your project:
npx lemonxWhat it does
- Creates
.github/workflows/ai-test-loop.ymlwith an AI-powered test-fix loop workflow - Updates your
README.md(or creates one) with:- Required GitHub repository secrets to set up
- Step-by-step instructions for adding them
- A description of what the workflow does
Required secrets
Before pushing, add these to Settings → Secrets and variables → Actions in your GitHub repo:
| Secret | Description |
|---|---|
| CLOUDFLARE_ACCOUNT_ID | Your Cloudflare Account ID |
| CLOUDFLARE_API_KEY | Your Cloudflare API Key |
The generated workflow
The workflow triggers on every push and pull request to non-main branches and:
- Checks out your repository
- Verifies Docker and Docker Compose availability
- Runs
docker compose up --buildfor the AI test-fix loop - Cleans up all containers and volumes when done
License
MIT
⚙️ GitHub Actions – AI Test Loop
This repo uses an AI-powered test-fix loop that runs automatically on every push and pull request (except main).
🔐 Required: Add Repository Secrets
Before pushing, you must add the following secrets to your GitHub repository, or the workflow will fail:
| Secret Name | Description |
|---|---|
| CLOUDFLARE_ACCOUNT_ID | Your Cloudflare Account ID |
| CLOUDFLARE_API_KEY | Your Cloudflare API Key |
How to add secrets:
- Go to your repository on GitHub
- Navigate to Settings → Secrets and variables → Actions
- Click "New repository secret"
- Add each secret listed above
🚀 What it does
On every push/PR to a non-main branch, the workflow:
- Checks out your repository
- Verifies Docker and Docker Compose are available
- Runs the AI test-fix loop via
docker compose up - Cleans up containers and volumes after completion
The workflow file lives at .github/workflows/ai-test-loop.yml.
