Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Dec 2, 2024
1 parent 84d0372 commit e22d939
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build-and-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit e22d939

Please sign in to comment.