File tree Expand file tree Collapse file tree 6 files changed +173
-89
lines changed Expand file tree Collapse file tree 6 files changed +173
-89
lines changed Original file line number Diff line number Diff line change 1+ name : Branches Java CI
2+
3+ on :
4+ # Trigger the workflow on push
5+ # but only for the non master/1.0.x branches
6+ push :
7+ branches-ignore :
8+ - 1.0.x
9+ - master
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ${{ matrix.os }}
15+
16+ strategy :
17+ matrix :
18+ os : [ ubuntu-latest ]
19+ jdk : [ 1.8, 11, 14 ]
20+ fail-fast : false
21+
22+ steps :
23+ - uses : actions/checkout@v2
24+ - name : Set up JDK ${{ matrix.jdk }}
25+ uses : actions/setup-java@v1
26+ with :
27+ java-version : ${{ matrix.jdk }}
28+ - name : Cache Gradle packages
29+ uses : actions/cache@v1
30+ with :
31+ path : ~/.gradle/caches
32+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
33+ restore-keys : ${{ runner.os }}-gradle
34+ - name : Grant execute permission for gradlew
35+ run : chmod +x gradlew
36+ - name : Build with Gradle
37+ run : ./gradlew clean build
38+ - name : Publish Packages to Artifactory
39+ if : ${{ matrix.jdk == '1.8' }}
40+ run : ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PversionSuffix="-${githubRef#refs/heads/}-SNAPSHOT" -PbuildNumber="${buildNumber}" artifactoryPublish --stacktrace
41+ env :
42+ bintrayUser : ${{ secrets.bintrayUser }}
43+ bintrayKey : ${{ secrets.bintrayKey }}
44+ githubRef : ${{ github.ref }}
45+ buildNumber : ${{ github.run_number }}
Original file line number Diff line number Diff line change 1+ name : Main Branches Java CI
2+
3+ on :
4+ # Trigger the workflow on push
5+ # but only for the master/1.0.x branch
6+ push :
7+ branches :
8+ - master
9+ - 1.0.x
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ${{ matrix.os }}
15+
16+ strategy :
17+ matrix :
18+ os : [ ubuntu-latest ]
19+ jdk : [ 1.8, 11, 14 ]
20+ fail-fast : false
21+
22+ steps :
23+ - uses : actions/checkout@v2
24+ - name : Set up JDK ${{ matrix.jdk }}
25+ uses : actions/setup-java@v1
26+ with :
27+ java-version : ${{ matrix.jdk }}
28+ - name : Cache Gradle packages
29+ uses : actions/cache@v1
30+ with :
31+ path : ~/.gradle/caches
32+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
33+ restore-keys : ${{ runner.os }}-gradle
34+ - name : Grant execute permission for gradlew
35+ run : chmod +x gradlew
36+ - name : Build with Gradle
37+ run : ./gradlew clean build
38+ - name : Publish Packages to Artifactory
39+ if : ${{ matrix.jdk == '1.8' }}
40+ run : ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PversionSuffix="-SNAPSHOT" -PbuildNumber="${buildNumber}" artifactoryPublish --stacktrace
41+ env :
42+ bintrayUser : ${{ secrets.bintrayUser }}
43+ bintrayKey : ${{ secrets.bintrayKey }}
44+ buildNumber : ${{ github.run_number }}
45+ - name : Aggregate test reports with ciMate
46+ if : always()
47+ continue-on-error : true
48+ env :
49+ CIMATE_PROJECT_ID : m84qx17y
50+ run : |
51+ wget -q https://get.cimate.io/release/linux/cimate
52+ chmod +x cimate
53+ ./cimate "**/TEST-*.xml"
Original file line number Diff line number Diff line change 1+ name : Pull Request Java CI
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ${{ matrix.os }}
9+
10+ strategy :
11+ matrix :
12+ os : [ ubuntu-latest ]
13+ jdk : [ 1.8, 11, 14 ]
14+ fail-fast : false
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Set up JDK ${{ matrix.jdk }}
19+ uses : actions/setup-java@v1
20+ with :
21+ java-version : ${{ matrix.jdk }}
22+ - name : Cache Gradle packages
23+ uses : actions/cache@v1
24+ with :
25+ path : ~/.gradle/caches
26+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
27+ restore-keys : ${{ runner.os }}-gradle
28+ - name : Grant execute permission for gradlew
29+ run : chmod +x gradlew
30+ - name : Build with Gradle
31+ run : ./gradlew clean build
Original file line number Diff line number Diff line change 1+ name : Release Java CI
2+
3+ on :
4+ # Trigger the workflow on push
5+ push :
6+ # Sequence of patterns matched against refs/tags
7+ tags :
8+ - ' *' # Push events to matching *, i.e. 1.0, 20.15.10
9+
10+ jobs :
11+ publish :
12+
13+ runs-on : ${{ matrix.os }}
14+
15+ strategy :
16+ matrix :
17+ os : [ ubuntu-latest ]
18+ fail-fast : false
19+
20+ steps :
21+ - uses : actions/checkout@v2
22+ - name : Set up JDK 1.8
23+ uses : actions/setup-java@v1
24+ with :
25+ java-version : 1.8
26+ - name : Cache Gradle packages
27+ uses : actions/cache@v1
28+ with :
29+ path : ~/.gradle/caches
30+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
31+ restore-keys : ${{ runner.os }}-gradle
32+ - name : Grant execute permission for gradlew
33+ run : chmod +x gradlew
34+ - name : Build with Gradle
35+ run : ./gradlew clean build
36+ - name : Publish Packages to Bintray
37+ run : ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" -Pversion="${githubRef#refs/tags/}" -PbuildNumber="${buildNumber}" bintrayUpload
38+ env :
39+ bintrayUser : ${{ secrets.bintrayUser }}
40+ bintrayKey : ${{ secrets.bintrayKey }}
41+ sonatypeUsername : ${{ secrets.sonatypeUsername }}
42+ sonatypePassword : ${{ secrets.sonatypePassword }}
43+ githubRef : ${{ github.ref }}
44+ buildNumber : ${{ github.run_number }}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments