This is an automated email from the ASF dual-hosted git repository.
menghaoran 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 77841b59590 Refactor : refactor the graalvm test condition (#33876)
77841b59590 is described below
commit 77841b595908a49c108a918a78336187988153e9
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Mon Dec 2 11:01:05 2024 +0800
Refactor : refactor the graalvm test condition (#33876)
* Refactor : refactor the graalvm test condition
* Refactor : remove sonar checkstyle
---
.github/workflows/nightly-check.yml | 35 +----------------------------------
.github/workflows/nightly-ci.yml | 2 +-
2 files changed, 2 insertions(+), 35 deletions(-)
diff --git a/.github/workflows/nightly-check.yml
b/.github/workflows/nightly-check.yml
index 2005cca4de5..894496d5c08 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -46,40 +46,7 @@ jobs:
${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-
- name: Run SpotBugs
run: ./mvnw clean install spotbugs:check -Pcheck -T1C
-
- checkstyle-report-sonarcloud:
- if: github.repository == 'apache/shardingsphere'
- name: Checkstyle - SonarCloud
- needs: global-environment
- runs-on: ubuntu-latest
- timeout-minutes: 30
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-java@v4
- with:
- distribution: 'temurin'
- java-version: 17
- - uses: actions/cache@v4
- with:
- path: ~/.sonar/cache
- key: ${{ runner.os }}-sonar
- restore-keys: ${{ runner.os }}-sonar
- - uses: actions/cache@v4
- with:
- path: ~/.m2/repository
- key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-${{ hashFiles('pom.xml','*/pom.xml') }}
- restore-keys: |
- ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-
- - name: Aggregate checkstyle report
- run: |
- ./mvnw clean install -DskipTests -T1C
- ./mvnw checkstyle:checkstyle-aggregate -Pcheck -T1C
- - name: Upload checkstyle report to SonarCloud
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
- run: ./mvnw -B sonar:sonar -Dsonar.projectKey=apache_shardingsphere
-Dsonar.java.checkstyle.reportPaths=target/checkstyle-result.xml
-
+
check-dead-links:
if: github.repository == 'apache/shardingsphere'
name: Check - Dead Links
diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml
index 0929883e231..c262ce5027c 100644
--- a/.github/workflows/nightly-ci.yml
+++ b/.github/workflows/nightly-ci.yml
@@ -101,7 +101,7 @@ jobs:
run: ./mvnw test -B -ntp -fae -T1C
ci-native-test:
- if: github.repository == 'apache/shardingsphere'
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
name: NativeTest CI - GraalVM CE on ${{ matrix.os }}
needs: global-environment
runs-on: ${{ matrix.os }}