Skip to main content

CI/CD Workflows

Alfa Commerce uses GitHub Actions to automatically check every Pull Request. Four workflows run on every PR.

Overview

WorkflowTriggerWhat it does
Claude PR ReviewPR opened / @claude commentAI reviews code, answers questions
Code QualityPR to main/developerPHP CS Fixer (auto-fix) + PHPStan (bug detection)
Security ScanPR/push to main/developerCodeQL, PHPStan security, TruffleHog

What Happens on Every PR

Developer opens Pull Request

├── PHP CS Fixer ──→ Auto-fixes code style, commits to branch
├── PHPStan ────────→ Reports bugs as inline annotations
├── Claude Review ──→ AI posts review comments
└── Security Scan ─→ Checks for vulnerabilities and leaked secrets

Checking Results

On the Pull Request page:

  • Checks tab — Green (passed) or red (failed) for each check
  • Files changed tab — Inline annotations on specific lines
  • Conversation tab — Claude AI review comments
IconMeaning
Green checkmarkPassed
Red XIssues found — click for details
Yellow dotStill running

Claude AI Review

Claude automatically reviews every PR. You can also ask questions:

@claude is this the right approach for cart calculations?
@claude are there security issues with this code?
@claude explain what this method does

Fixing Issues

CheckAuto-fixes?What to do
PHP CS FixerYesPull latest from your branch
PHPStanNoFix the errors, push again
ClaudeNoRead suggestions, apply what makes sense
SecurityNoFix vulnerabilities, rotate leaked secrets