File tree Expand file tree Collapse file tree 3 files changed +57
-3
lines changed
Expand file tree Collapse file tree 3 files changed +57
-3
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,42 @@ jobs:
4444 - name : build, package and publish the image
4545 run : |
4646 VER_TAG=$(echo ${{ steps.meta.outputs.tags }} | cut --delimiter=: --fields=2-3)
47- mvn -B clean package spring-boot:build-image -am -pl iris-client-bff -Dspring-boot.build-image.publish=true -Dversion.tag=$VER_TAG
47+ mvn -B clean verify spring-boot:build-image -am -pl iris-client-bff -Dspring-boot.build-image.publish=true -Dversion.tag=$VER_TAG
4848 env :
4949 DOCKER_HUB_USER : ${{ secrets.DOCKER_HUB_USER }}
5050 DOCKER_HUB_PW : ${{ secrets.DOCKER_HUB_PW }}
51+
52+ - name : Upload Test Reports
53+ if : always()
54+ uses : actions/upload-artifact@v2
55+ with :
56+ name : test-reports
57+ path : |
58+ **/surefire-reports/*.xml
59+ **/failsafe-reports/*.xml
60+
61+ publish-test-results :
62+ name : Publish Test Results
63+ needs : build
64+ runs-on : ubuntu-latest
65+ steps :
66+ - name : Download Artifacts
67+ uses : actions/download-artifact@v2
68+ with :
69+ name : test-reports
70+ path : reports
71+
72+ - name : Publish Test Results
73+ uses : EnricoMi/publish-unit-test-result-action@v1
74+ with :
75+ files : reports/**/*.xml
76+ report_individual_runs : true
77+ check_run_annotations_branch : " *"
5178
5279 container_scan :
5380 name : Trivy Container Scan
5481 needs : build
55- runs-on : ubuntu-20.04
82+ runs-on : ubuntu-latest
5683 steps :
5784 - name : Checkout code
5885
Original file line number Diff line number Diff line change 6868 @semantic-release/git
6969 env :
7070 GITHUB_TOKEN : ${{ secrets.JK_GITHUB_TOKEN }}
71+
72+ - name : Upload Test Reports
73+ if : always()
74+ uses : actions/upload-artifact@v2
75+ with :
76+ name : test-reports
77+ path : |
78+ **/surefire-reports/*.xml
79+ **/failsafe-reports/*.xml
80+
81+ publish-test-results :
82+ name : Publish Test Results
83+ needs : build
84+ runs-on : ubuntu-latest
85+ steps :
86+ - name : Download Artifacts
87+ uses : actions/download-artifact@v2
88+ with :
89+ name : test-reports
90+ path : reports
91+
92+ - name : Publish Test Results
93+ uses : EnricoMi/publish-unit-test-result-action@v1
94+ with :
95+ files : reports/**/*.xml
96+ report_individual_runs : true
97+ check_run_annotations_branch : " *"
7198
7299 container_scan :
73100 needs : release-client
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ mvn versions:set -DnewVersion=$VERSION -DprocessAllModules=true
9797
9898# Package the new version and copy it to release folder
9999# These files will be upload to github by @semantic-release/github
100- mvn -B clean package spring-boot:repackage spring-boot:build-image -Dspring-boot.build-image.publish=false
100+ mvn -B clean verify spring-boot:repackage spring-boot:build-image -Dspring-boot.build-image.publish=false
101101mkdir release && cp ./iris-client-bff/target/* .jar release
102102
103103BFF_IMAGE_NAME=" $NAMESPACE /iris-client-bff"
You can’t perform that action at this time.
0 commit comments