File tree Expand file tree Collapse file tree 1 file changed +10
-19
lines changed Expand file tree Collapse file tree 1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change 1- name : PR Submission
1+ name : PR Validation
22
33on :
44 pull_request :
5- branches :
6- - main
5+ branches : [ main ]
76
87jobs :
9- build :
8+ test-coverage :
109 runs-on : ubuntu-latest
11-
1210 steps :
1311 - name : Checkout code
14- uses : actions/checkout@v2
12+ uses : actions/checkout@v4
1513
16- - name : Set up JDK
17- uses : actions/setup-java@v2
14+ - name : Set up JDK 11
15+ uses : actions/setup-java@v3
1816 with :
19- distribution : ' adopt'
20- java-version : ' 11'
21-
22- - name : Generate coverage report
23- run : mvn test jacoco:report
17+ distribution : ' temurin'
18+ java-version : ' 16'
2419
25- - name : Check coverage threshold
26- uses : 5monkeys/code-coverage-action@v1
27- with :
28- coverage-files : target/site/jacoco/jacoco.xml
29- minimum-coverage : 90
30- fail-on-coverage-decrease : true
20+ - name : Run coverage check
21+ run : mvn verify
You can’t perform that action at this time.
0 commit comments