File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Java CI
22
33on :
4- schedule :
5- - cron : ' 0 0 * * *'
64 push :
75 branches : [ master ]
86 tags : [ 'v[0-9]+.[0-9]+.[0-9]+' ]
9- pull_request :
10- branches : [ master ]
117
128 workflow_dispatch :
139
Original file line number Diff line number Diff line change 1+ name : Java SDK Scheduled Test
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 8 * * 1'
6+
7+ workflow_dispatch :
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ java-versions : [ 11, 17, 19 ]
15+ fail-fast : false
16+ steps :
17+ - uses : actions/checkout@v5
18+
19+ - name : Set up JDK
20+ uses : actions/setup-java@v5
21+ with :
22+ java-version : ${{ matrix.java-versions }}
23+ distribution : zulu
24+ cache : gradle
25+
26+ - name : Grant execute permission for gradlew
27+ run : chmod +x gradlew
28+
29+ - name : Test with Gradle
30+ run : ./gradlew test --stacktrace
31+
32+ coverage-scan :
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@v5
36+ with :
37+ fetch-depth : 0
38+
39+ - name : Set up JDK
40+ uses : actions/setup-java@v5
41+ with :
42+ java-version : 17
43+ distribution : zulu
44+ cache : gradle
45+
46+ - name : Cache SonarCloud packages
47+ uses : actions/cache@v4
48+ with :
49+ path : ~/.sonar/cache
50+ key : ${{ runner.os }}-sonar
51+ restore-keys : ${{ runner.os }}-sonar
52+
53+ - name : Grant execute permission for gradlew
54+ run : chmod +x gradlew
55+
56+ - name : Check with Gradle
57+ run : ./gradlew check --stacktrace
58+
59+ - name : Execute sonar scan
60+ run : ./gradlew sonar -Dbuild.number=$GITHUB_RUN_NUMBER
61+ env :
62+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
63+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Java SDK Test
2+
3+ on :
4+ push :
5+ branches-ignore :
6+ - master
7+ pull_request :
8+ branches : [ master ]
9+
10+ workflow_dispatch :
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ java-versions : [ 11, 17, 19 ]
18+ fail-fast : false
19+ steps :
20+ - uses : actions/checkout@v5
21+
22+ - name : Set up JDK
23+ uses : actions/setup-java@v5
24+ with :
25+ java-version : ${{ matrix.java-versions }}
26+ distribution : zulu
27+ cache : gradle
28+
29+ - name : Grant execute permission for gradlew
30+ run : chmod +x gradlew
31+
32+ - name : Test with Gradle
33+ run : ./gradlew test --stacktrace
34+
35+ coverage-scan :
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@v5
39+ with :
40+ fetch-depth : 0
41+
42+ - name : Set up JDK
43+ uses : actions/setup-java@v5
44+ with :
45+ java-version : 17
46+ distribution : zulu
47+ cache : gradle
48+
49+ - name : Cache SonarCloud packages
50+ uses : actions/cache@v4
51+ with :
52+ path : ~/.sonar/cache
53+ key : ${{ runner.os }}-sonar
54+ restore-keys : ${{ runner.os }}-sonar
55+
56+ - name : Grant execute permission for gradlew
57+ run : chmod +x gradlew
58+
59+ - name : Check with Gradle
60+ run : ./gradlew check --stacktrace
61+
62+ - name : Execute sonar scan
63+ run : ./gradlew sonar -Dbuild.number=$GITHUB_RUN_NUMBER
64+ env :
65+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
66+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11version =9.4.4
2+ SONATYPE_CONNECT_TIMEOUT_SECONDS =120
You can’t perform that action at this time.
0 commit comments