This is an automated email from the ASF dual-hosted git repository.
zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new c95c2dc18ea Refactor : optimized the jacoco workflow (#33748)
c95c2dc18ea is described below
commit c95c2dc18eaeeead34a0a412bcc7e2ebb9816d0e
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Thu Nov 21 10:46:05 2024 +0800
Refactor : optimized the jacoco workflow (#33748)
---
.../scripts/unit-test-coverage-merge/code-coverage-merge.sh | 1 +
.github/workflows/schedule-report.yml | 7 +++----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/.github/workflows/resources/scripts/unit-test-coverage-merge/code-coverage-merge.sh
b/.github/workflows/resources/scripts/unit-test-coverage-merge/code-coverage-merge.sh
index 4751b4bb6a8..0aa19d7eba9 100755
---
a/.github/workflows/resources/scripts/unit-test-coverage-merge/code-coverage-merge.sh
+++
b/.github/workflows/resources/scripts/unit-test-coverage-merge/code-coverage-merge.sh
@@ -90,6 +90,7 @@ done
# delete the build/libs/groovy.jar file, this will include useless packages
find . -type f -regex '.*/groovy.jar' -exec rm -f {} +
find . -type d -regex '.*/autogen/*' -exec rm -rf {} +
+find . -type d -regex './test/*' -exec rm -rf {} +
echo "Copy Success, the compilation merge output folder is located at:
$classOutPutDir"
echo "Start generating overall coverage reports"
diff --git a/.github/workflows/schedule-report.yml
b/.github/workflows/schedule-report.yml
index e5e8e90e0f6..3478c886393 100644
--- a/.github/workflows/schedule-report.yml
+++ b/.github/workflows/schedule-report.yml
@@ -76,10 +76,9 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.m2/repository
- key: shardingsphere-maven-third-party-e2e-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- shardingsphere-maven-third-party-e2e-cache-
- shardingsphere-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-
- name: Install Project
run: ./mvnw clean install -DskipTests -T1C
- name: Set up JDK 8 for Jacoco
@@ -89,7 +88,7 @@ jobs:
java-version: 8
- name: Build with maven and execute jacoco aggregation script
run: |
- ./mvnw --show-version --batch-mode --no-transfer-progress verify
-Dmaven.test.failure.ignore=true -DfailIfNoTests=false
-Dsurefire.failIfNoSpecifiedTests=false &&
+ ./mvnw -V -B -ntp verify -Dmaven.test.failure.ignore=true
-DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false &&
chmod +x
./.github/workflows/resources/scripts/unit-test-coverage-merge/code-coverage-merge.sh
&&
./.github/workflows/resources/scripts/unit-test-coverage-merge/code-coverage-merge.sh
${{ github.workspace }}
- name: Upload coverage reports to codecov