From e6dbde5182ad06c10e418ed91411a701ec414061 Mon Sep 17 00:00:00 2001 From: Young Bu Park Date: Mon, 13 Jan 2020 17:52:13 -0800 Subject: [PATCH] Upload jacoco test coverage report to artifact storage (#95) * set jacoco report output dir * upload test report * add dapr version info --- .github/workflows/build.yml | 14 ++++++++++++-- sdk-actors/pom.xml | 3 +++ sdk/pom.xml | 3 +++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7bdfd80b2..a9d7fec1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,13 +23,13 @@ jobs: DAPR_RUNTIME_VER: 0.3.0 steps: - uses: actions/checkout@v1 - - name: Set up ${{ env.JDK_VER }} + - name: Set up OpenJDK ${{ env.JDK_VER }} uses: actions/setup-java@v1 with: java-version: ${{ env.JDK_VER }} - name: Set up Dapr CLI run: wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash - - name: Initialize Dapr runtime as a standalone mode + - name: Initialize Dapr runtime ${{ env.DAPR_RUNTIME_VER }} run: | sudo dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }} echo "Showing dapr version..." @@ -42,3 +42,13 @@ jobs: run: mvn test - name: Integration-test run: mvn integration-test + - name: Upload test report for sdk + uses: actions/upload-artifact@master + with: + name: report-dapr-java-sdk + path: sdk/target/jacoco-report/ + - name: Upload test report for sdk-actors + uses: actions/upload-artifact@master + with: + name: report-dapr-java-sdk-actors + path: sdk-actors/target/jacoco-report/ diff --git a/sdk-actors/pom.xml b/sdk-actors/pom.xml index 162fcd610..0ed71e042 100644 --- a/sdk-actors/pom.xml +++ b/sdk-actors/pom.xml @@ -110,6 +110,9 @@ report + + target/jacoco-report/ + check diff --git a/sdk/pom.xml b/sdk/pom.xml index 43259eae5..f96ef8026 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -136,6 +136,9 @@ report + + target/jacoco-report/ + check