diff --git a/.github/workflows/bff_develop.yml b/.github/workflows/bff_develop.yml index b2dcefa1f..df8e9eeca 100644 --- a/.github/workflows/bff_develop.yml +++ b/.github/workflows/bff_develop.yml @@ -44,15 +44,42 @@ jobs: - name: build, package and publish the image run: | VER_TAG=$(echo ${{ steps.meta.outputs.tags }} | cut --delimiter=: --fields=2-3) - mvn -B clean package spring-boot:build-image -am -pl iris-client-bff -Dspring-boot.build-image.publish=true -Dversion.tag=$VER_TAG + mvn -B clean verify spring-boot:build-image -am -pl iris-client-bff -Dspring-boot.build-image.publish=true -Dversion.tag=$VER_TAG env: DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }} DOCKER_HUB_PW: ${{ secrets.DOCKER_HUB_PW }} + + - name: Upload Unit Test Results + if: always() + uses: actions/upload-artifact@v2 + with: + name: unit-test-results + path: | + **/surefire-reports/*.xml + **/failsafe-reports/*.xml + + publish-test-results: + name: "Publish Unit Tests Results" + needs: build + runs-on: ubuntu-latest + # the build job might be skipped, we don't need to run this job then + if: success() || failure() + steps: + - name: Download Artifacts + uses: actions/download-artifact@v2 + with: + name: unit-test-results + path: reports + + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v1 + with: + files: reports/**/*.xml container_scan: name: Trivy Container Scan needs: build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2.3.4