This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch test/codecov
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/test/codecov by this push:
new e22d93958e Fixes
e22d93958e is described below
commit e22d93958e711b9b50d7aaa9c4235aa27328d114
Author: Albumen Kevin <[email protected]>
AuthorDate: Mon Dec 2 09:48:45 2024 +0800
Fixes
---
.github/workflows/build-and-test-pr.yml | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/build-and-test-pr.yml
b/.github/workflows/build-and-test-pr.yml
index 40c120db3d..3f924d75ae 100644
--- a/.github/workflows/build-and-test-pr.yml
+++ b/.github/workflows/build-and-test-pr.yml
@@ -268,6 +268,11 @@ jobs:
with:
name: surefire-reports
path: "**/target/surefire-reports/**"
+ - name: "Upload site reports"
+ uses: actions/upload-artifact@v4
+ with:
+ name: site-reports
+ path: "**/target/site/**"
samples-test-prepare:
needs: check-format
@@ -480,8 +485,6 @@ jobs:
needs: [check-format, samples-test-result]
steps:
- uses: actions/checkout@v4
- with:
- path: "./dubbo"
- uses: actions/checkout@v4
with:
repository: 'apache/dubbo-samples'
@@ -499,7 +502,6 @@ jobs:
path: ${{ github.workspace }}
- name: "Unpack class result"
run: |
- cd ${{ github.workspace }}/dubbo
unzip -o ${{ github.workspace }}/class.zip
- name: "Restore samples jacoco exec"
uses: actions/download-artifact@v4
@@ -510,11 +512,10 @@ jobs:
- name: "Merge samples jacoco result"
run: |
cd ${{ github.workspace
}}/dubbo-samples/test/dubbo-test-jacoco-merger
- mvn clean compile exec:java
-Dexec.mainClass="org.apache.dubbo.test.JacocoReport"
-Dexec.args="${{github.workspace}}/dubbo-samples ${{github.workspace}}/dubbo"
+ mvn clean compile exec:java
-Dexec.mainClass="org.apache.dubbo.test.JacocoReport"
-Dexec.args="${{github.workspace}}/dubbo-samples ${{github.workspace}}"
- name: "Remove old test result"
run: |
rm -rf ${{ github.workspace }}/dubbo-samples
- mv ${{ github.workspace }}/dubbo/* ${{ github.workspace }}/
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v4
with:
@@ -529,8 +530,6 @@ jobs:
needs: [check-format, integration-test-result, samples-test-result]
steps:
- uses: actions/checkout@v4
- with:
- path: "./dubbo"
- uses: actions/checkout@v4
with:
repository: 'apache/dubbo-integration-cases'
@@ -548,7 +547,6 @@ jobs:
path: ${{ github.workspace }}
- name: "Unpack class result"
run: |
- cd ${{ github.workspace }}/dubbo
unzip -o ${{ github.workspace }}/class.zip
- name: "Restore integration test jacoco exec"
uses: actions/download-artifact@v4
@@ -559,11 +557,10 @@ jobs:
- name: "Merge integration test jacoco result"
run: |
cd ${{ github.workspace
}}/dubbo-integration-cases/test/dubbo-test-jacoco-merger
- mvn clean compile exec:java
-Dexec.mainClass="org.apache.dubbo.test.JacocoReport"
-Dexec.args="${{github.workspace}}/dubbo-integration-cases
${{github.workspace}}/dubbo"
+ mvn clean compile exec:java
-Dexec.mainClass="org.apache.dubbo.test.JacocoReport"
-Dexec.args="${{github.workspace}}/dubbo-integration-cases
${{github.workspace}}"
- name: "Remove old test result"
run: |
rm -rf ${{ github.workspace }}/dubbo-integration-cases
- mv ${{ github.workspace }}/dubbo/* ${{ github.workspace }}/
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v4
with: