Skip to content

Commit 5c5827f

Browse files
ci: add checkstyle and optional live e2e
1 parent 91e781f commit 5c5827f

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/ci-reports.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
jobs:
1313
ci-reports:
1414
runs-on: ubuntu-latest
15+
env:
16+
RUN_LIVE_E2E: "false"
1517

1618
steps:
1719
- name: Checkout code
@@ -36,6 +38,16 @@ jobs:
3638
# ===== STATIC ANALYSIS =====
3739
- name: Generate PMD HTML report
3840
run: ./mvnw -B -ntp pmd:pmd -Dpmd.failOnViolation=false
41+
42+
- name: Run Checkstyle
43+
run: ./mvnw -B -ntp checkstyle:checkstyle
44+
45+
# ===== OPTIONAL LIVE E2E (requires LIVE_E2E env + external deps) =====
46+
- name: Run live E2E (opt-in)
47+
if: env.RUN_LIVE_E2E == 'true'
48+
env:
49+
LIVE_E2E: "true"
50+
run: ./mvnw -B -ntp -Dtest=dev.coms4156.project.metadetect.e2e.ClientServiceLiveE2eTest test
3951

4052
# ===== CONVERT TO PNG =====
4153
- name: Install wkhtmltopdf for report conversion
@@ -59,6 +71,9 @@ jobs:
5971
if [ -f "target/pmd.xml" ]; then
6072
cp target/pmd.xml reports/raw/pmd.xml
6173
fi
74+
if [ -f "target/checkstyle-result.xml" ]; then
75+
cp target/checkstyle-result.xml reports/raw/checkstyle-result.xml
76+
fi
6277
if [ -f "target/site/jacoco/jacoco.xml" ]; then
6378
cp target/site/jacoco/jacoco.xml reports/raw/jacoco.xml
6479
fi

citations.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,3 +3010,51 @@ Extended CI and test reliability:
30103010
> Portions of this work were generated with assistance from OpenAI ChatGPT (GPT-5) on 2026-02-17. All AI-generated content was reviewed and finalized by the development team.
30113011

30123012
---
3013+
3014+
### **Commit / Ticket Reference**
3015+
- **Commit:** pending
3016+
- **Ticket:** none
3017+
- **Date:** 2026-02-17
3018+
- **Team Member:** Jalen Stephens
3019+
3020+
---
3021+
3022+
### **AI Tool Information**
3023+
- **Tool Used:** OpenAI ChatGPT (GPT-5) via Codex CLI
3024+
- **Access Method:** Local Codex CLI (sandboxed)
3025+
- **Configuration:** Default model settings
3026+
- **Cost:** $0 (no paid API calls)
3027+
3028+
---
3029+
3030+
### **Purpose of AI Assistance**
3031+
Expanded CI coverage and optional live E2E hook:
3032+
- Added Checkstyle execution to the CI workflow and bundled the XML into artifacts.
3033+
- Added an opt-in live E2E test step (`LIVE_E2E=true ./mvnw -Dtest=dev.coms4156.project.metadetect.e2e.ClientServiceLiveE2eTest test`) gated by `RUN_LIVE_E2E`.
3034+
- Retained prior report generation and artifact packaging.
3035+
3036+
---
3037+
3038+
### **Prompts / Interaction Summary**
3039+
- “Does this do all of this: Continuous Integration… add Checkstyle to the CI”
3040+
- “We also have an E2E test … command: LIVE_E2E=true mvn -Dtest=dev.coms4156.project.metadetect.e2e.ClientServiceLiveE2eTest test”
3041+
- “git commit and add citations”
3042+
3043+
---
3044+
3045+
### **Resulting Artifacts**
3046+
- `.github/workflows/ci-reports.yml`
3047+
- `citations.md`
3048+
3049+
---
3050+
3051+
### **Verification**
3052+
- Local: `./mvnw -q -DskipTests compile`
3053+
- CI: run `ci-reports` workflow; Checkstyle now executes, E2E step runs when `RUN_LIVE_E2E=true`.
3054+
3055+
---
3056+
3057+
### **Attribution Statement**
3058+
> Portions of this work were generated with assistance from OpenAI ChatGPT (GPT-5) on 2026-02-17. All AI-generated content was reviewed and finalized by the development team.
3059+
3060+
---

0 commit comments

Comments
 (0)