-
-
Notifications
You must be signed in to change notification settings - Fork 0
CI CD Integration
Supratim Dam edited this page Mar 15, 2026
·
1 revision
Add GrowthLint to your CI pipeline to catch growth regressions on every PR.
Create .github/workflows/growthlint.yml:
name: GrowthLint
on: [pull_request]
jobs:
growthlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e .
- run: growthlint check-pr . --min-score 60name: GrowthLint
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
growthlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install GrowthLint
run: pip install -e .
- name: Run tests
run: python -m pytest tests/ -q
- name: Run GrowthLint scan
run: growthlint scan . --format json --output growthlint-report.json
- name: Upload report
if: always()
uses: actions/upload-artifact@v4
with:
name: growthlint-report
path: growthlint-report.jsongrowthlint check-pr <directory> --min-score <threshold>| Flag | Default | Description |
|---|---|---|
--min-score |
50 | Minimum acceptable growth health score |
Exit codes:
-
0— Score meets threshold -
1— Score below threshold or critical violations found
When you run check-pr on a repo directory, GrowthLint:
- Scans all HTML/JSX/TSX/PHP/Liquid template files
- Detects the platform from project structure
- Evaluates all applicable rules
- Calculates the growth health score
- Fails the build if score < threshold or critical issues exist
| Threshold | Use Case |
|---|---|
| 80+ | Mature product with high conversion standards |
| 60-79 | Active development, catching major regressions |
| 40-59 | Early stage, preventing critical mistakes |
| < 40 | Just getting started, blocking only the worst issues |
Start low and increase the threshold as you fix existing issues.
GrowthLint — The ESLint for Growth Marketing | MIT License
Getting Started
Reference
Guides
Help
Links