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
|
DAPR_RUNTIME_VER: 0.3.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Set up ${{ env.JDK_VER }}
|
- name: Set up OpenJDK ${{ env.JDK_VER }}
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: ${{ env.JDK_VER }}
|
java-version: ${{ env.JDK_VER }}
|
||||||
- name: Set up Dapr CLI
|
- name: Set up Dapr CLI
|
||||||
run: wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
|
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: |
|
run: |
|
||||||
sudo dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
|
sudo dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
|
||||||
echo "Showing dapr version..."
|
echo "Showing dapr version..."
|
||||||
|
@ -42,3 +42,13 @@ jobs:
|
||||||
run: mvn test
|
run: mvn test
|
||||||
- name: Integration-test
|
- name: Integration-test
|
||||||
run: mvn 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>
|
<goals>
|
||||||
<goal>report</goal>
|
<goal>report</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>target/jacoco-report/</outputDirectory>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>check</id>
|
<id>check</id>
|
||||||
|
|
|
@ -136,6 +136,9 @@
|
||||||
<goals>
|
<goals>
|
||||||
<goal>report</goal>
|
<goal>report</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>target/jacoco-report/</outputDirectory>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>check</id>
|
<id>check</id>
|
||||||
|
|
Loading…
Reference in New Issue