This is an automated email from the ASF dual-hosted git repository.
zhangliang 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 382a14cc85b Add : add schedule check (#27189)
382a14cc85b is described below
commit 382a14cc85bcc4308b2bce9b15b94a3a8cfd92d7
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Fri Jul 14 12:41:29 2023 +0800
Add : add schedule check (#27189)
---
.github/workflows/schedule-check.yml | 57 ++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/.github/workflows/schedule-check.yml
b/.github/workflows/schedule-check.yml
new file mode 100644
index 00000000000..bc6c08a4e2f
--- /dev/null
+++ b/.github/workflows/schedule-check.yml
@@ -0,0 +1,57 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: Schedule - Check
+
+on:
+ schedule:
+ - cron: '0 */1 * * *' # very hour
+ workflow_dispatch:
+
+env:
+ MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3 -Dcheckstyle.skip=true
+ CACHE_PREFIX: shardingsphere
+
+jobs:
+ check-and-report-sonarcloud:
+ if: (github.repository == 'apache/shardingsphere')
+ name: Check - SonarCloud
+ runs-on: ubuntu-latest
+ timeout-minutes: 40
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
+ with:
+ java-version: 11
+ distribution: 'temurin'
+ - uses: actions/cache@v3
+ with:
+ path: ~/.sonar/cache
+ key: ${{ runner.os }}-sonar
+ restore-keys: ${{ runner.os }}-sonar
+ - uses: actions/cache@v3
+ with:
+ path: ~/.m2/repository
+ key: ${{ env.CACHE_PREFIX }}-maven-third-party-${{
hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ env.CACHE_PREFIX }}-maven-third-party-
+ - name: Analyze with SonarCloud
+ env:
+ MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
+ run: ./mvnw -B clean verify
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
-Dsonar.projectKey=apache_shardingsphere -Dmaven.javadoc.skip=true
-Drat.skip=true -Djacoco.skip=true -DskipTests