mirror of https://github.com/dapr/java-sdk.git
Upload jacoco test coverage report to artifact storage (#95)
* set jacoco report output dir * upload test report * add dapr version info
This commit is contained in:
parent
59762ab819
commit
e6dbde5182
|
@ -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/
|
||||
|
|
|
@ -110,6 +110,9 @@
|
|||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>target/jacoco-report/</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check</id>
|
||||
|
|
|
@ -136,6 +136,9 @@
|
|||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>target/jacoco-report/</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check</id>
|
||||
|
|
Loading…
Reference in New Issue