Skip to content

Commit 292df56

Browse files
Flossyclaude
andcommitted
Add automated quality gate workflow
Enables automated quality monitoring with GitHub Actions: - Auto-creates issues when quality checks fail - Comments quality metrics on PRs - Daily security scans (2 AM UTC) - Prevents merging failing PRs Quality Gates: - JaCoCo: ≥93% instruction, ≥86% branch coverage - SpotBugs: 0 bugs - PMD: 0 violations - Checkstyle: 0 errors - OWASP: 0 critical/high vulnerabilities Issues auto-labeled: quality-gate, automated, [tool-specific] See .github/README.md for details. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f4cccb6 commit 292df56

2 files changed

Lines changed: 547 additions & 0 deletions

File tree

.github/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# GitHub Workflows
2+
3+
## quality-gate.yml
4+
5+
Automated quality monitoring for FlossWare projects.
6+
7+
### What It Does
8+
9+
- ✅ Runs on every push/PR
10+
- ✅ Executes all Maven quality checks
11+
- ✅ Comments quality metrics on PRs
12+
- ✅ Automatically creates issues when quality gates fail:
13+
- Code coverage drops below threshold
14+
- SpotBugs finds bugs
15+
- PMD detects violations
16+
- Checkstyle errors
17+
- Security vulnerabilities (OWASP)
18+
- ✅ Daily security scans (2 AM UTC)
19+
20+
### Quality Gates
21+
22+
| Tool | Threshold | Fail Condition |
23+
|------|-----------|---------------|
24+
| JaCoCo | 93% instruction, 86% branch | Below threshold |
25+
| SpotBugs | 0 bugs | Any bugs found |
26+
| PMD | 0 violations | Any violations |
27+
| Checkstyle | 0 errors | Any errors |
28+
| OWASP | 0 critical/high | Critical or high vulnerabilities |
29+
30+
### Issue Labels
31+
32+
Auto-created issues are tagged with:
33+
- `quality-gate` - All quality gate issues
34+
- `automated` - Auto-created
35+
- Specific: `coverage`, `spotbugs`, `pmd`, `checkstyle`, `security`
36+
37+
### Configuration
38+
39+
Edit `quality-gate.yml` to:
40+
- Adjust coverage thresholds
41+
- Change schedule
42+
- Modify issue templates
43+
- Add custom checks
44+
45+
### Resources
46+
47+
- [Maven Quality Requirements](../build-tools/MAVEN-QUALITY-REQUIREMENTS.md)
48+
- [Test Coverage Guide](../build-tools/TEST-COVERAGE.md)
49+
- [FlossWare Build Tools](https://github.com/FlossWare/build-tools)

0 commit comments

Comments
 (0)