[Improve](CI)Modify Deadline-check trigger mode, and add maven cache for Sonarcheck (#23069)

There are a lot of deadlinks in stock, we will reopen it after a full repair…
This commit is contained in:
Calvin Kirs
2023-08-16 22:31:50 +08:00
committed by GitHub
parent 814acbf331
commit 7a9ff47528
2 changed files with 10 additions and 3 deletions

View File

@ -17,9 +17,8 @@
name: Dead Link Checker
on:
pull_request:
schedule:
- cron: '0 18 * * *' # TimeZone: UTC 0
- cron: '30 3,14 * * *'
concurrency:
group: dlc-${{ github.event.pull_request.number || github.ref }}

View File

@ -70,10 +70,18 @@ jobs:
shell: bash
run: |
bash generated-source.sh
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Analyze FE
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
MAVEN_OPTS: -Xmx4g
run: |
cd fe
mvn --batch-mode verify sonar:sonar -DskipTests -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-doris -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Xmx4g -XX:MaxPermSize=512m
mvn --batch-mode verify sonar:sonar -DskipTests -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-doris -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120