File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,31 @@ jobs:
2727
2828 - name : Build and Generate Coverage Report
2929 run : |
30- mvn clean install -DskipTests -DCLOUD_STORE_GROUP_ID=org.sunbird -DCLOUD_STORE_ARTIFACT_ID=cloud-store-sdk_2.12 -DCLOUD_STORE_VERSION=1.4.6
30+ mvn clean install -DskipTests \
31+ -DCLOUD_STORE_GROUP_ID=${{ vars.CLOUD_STORE_GROUP_ID }} \
32+ -DCLOUD_STORE_ARTIFACT_ID=${{ vars.CLOUD_STORE_ARTIFACT_ID }} \
33+ -DCLOUD_STORE_VERSION=${{ vars.CLOUD_STORE_VERSION }}
3134 cd content-api/content-service/
32- mvn clean install
3335 mvn clean test \
3436 org.jacoco:jacoco-maven-plugin:0.8.8:prepare-agent \
3537 test \
3638 org.jacoco:jacoco-maven-plugin:0.8.8:report
3739
38- - name : Set up JDK 17
39- uses : actions/setup-java@v2
40+ - name : Upload Test Results
41+ if : always()
42+ uses : actions/upload-artifact@v4
4043 with :
41- java-version : ' 17'
42- distribution : ' temurin'
44+ name : test-results
45+ path : ' content-api/content-service/target/surefire-reports/*.xml'
46+
47+ - name : Publish Test Results to PR
48+ if : always()
49+ uses : dorny/test-reporter@v1
50+ with :
51+ name : Test Results
52+ path : content-api/content-service/target/surefire-reports/*.xml
53+ reporter : java-junit
54+ fail-on-error : true
4355
4456 - name : Run SonarQube Analysis
4557 env :
You can’t perform that action at this time.
0 commit comments