File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # CI workflow for the feature/2.0.x line (JDK 17)
2+ #
3+ # Triggers:
4+ # - push / pull_request on the feature/2.0.x branch
5+ # - manual workflow_dispatch
6+ #
7+ # Runs `mvn -B clean verify` which includes the JaCoCo coverage gate
8+ # (90% line coverage, haltOnFailure=false) configured in the POM.
9+ name : CI
10+
11+ on :
12+ push :
13+ branches : [feature/2.0.x]
14+ pull_request :
15+ branches : [feature/2.0.x]
16+ workflow_dispatch :
17+
18+ permissions :
19+ contents : read
20+
21+ jobs :
22+ build :
23+ name : JDK 17 Build & Verify
24+ runs-on : ubuntu-latest
25+ timeout-minutes : 30
26+ steps :
27+ - name : Checkout source
28+ uses : actions/checkout@v4
29+
30+ - name : Set up JDK 17
31+ uses : actions/setup-java@v4
32+ with :
33+ distribution : temurin
34+ java-version : ' 17'
35+ cache : maven
36+
37+ - name : Build and verify with JaCoCo coverage gate
38+ run : mvn -B --no-transfer-progress clean verify
39+
40+ - name : Upload JaCoCo coverage report
41+ if : always()
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : jacoco-coverage
45+ path : target/site/jacoco
46+ retention-days : 14
47+
48+ - name : Upload surefire reports
49+ if : always()
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : surefire-reports
53+ path : target/surefire-reports
54+ retention-days : 14
You can’t perform that action at this time.
0 commit comments