File tree Expand file tree Collapse file tree 5 files changed +299
-159
lines changed Expand file tree Collapse file tree 5 files changed +299
-159
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,14 @@ permissions:
1616
1717jobs :
1818 build :
19-
2019 runs-on : ubuntu-latest
2120
2221 steps :
2322 - uses : actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
2423 - name : Set up JDK 8
2524 uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
2625 with :
27- java-version : ' 8 '
26+ java-version : ' 17 '
2827 distribution : ' temurin'
2928 cache : maven
3029 server-id : ossrh
3534 uses : actions/cache@36f1e144e1c8edb0a652766b484448563d8baf46
3635 with :
3736 path : ~/.m2/repository
38- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
37+ key : ${{ runner.os }}-17- maven-${{ hashFiles('**/pom.xml') }}
3938 restore-keys : |
40- ${{ runner.os }}-maven-
39+ ${{ runner.os }}-17- maven-
4140
4241 - name : Configure GPG Key
4342 run : |
6059 # Add -SNAPSHOT before deploy
6160 - name : Add SNAPSHOT
6261 run : mvn versions:set -DnewVersion='${project.version}-SNAPSHOT'
63-
62+
6463 - name : Deploy
6564 run : |
6665 mvn --batch-mode \
Original file line number Diff line number Diff line change @@ -7,17 +7,26 @@ permissions:
77
88jobs :
99 build :
10- runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ os : [ubuntu-latest]
13+ build :
14+ - java : 17
15+ profile : codequality
16+ - java : 8
17+ profile : java8
18+ name : with Java ${{ matrix.build.java }}
19+ runs-on : ${{ matrix.os}}
1120 steps :
1221 - name : Check out the code
1322 uses : actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
1423
1524 - name : Set up JDK 8
1625 uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
1726 with :
18- java-version : ' 8 '
19- distribution : ' temurin'
20- cache : maven
27+ java-version : ${{ matrix.build.java }}
28+ distribution : ' temurin'
29+ cache : maven
2130
2231 - name : Initialize CodeQL
2332 uses : github/codeql-action/init@0a35e8f6866a39b001e5f7ad1d0daf9836786896
@@ -27,13 +36,13 @@ jobs:
2736 - name : Cache local Maven repository
2837 uses : actions/cache@36f1e144e1c8edb0a652766b484448563d8baf46
2938 with :
30- path : ~/.m2/repository
31- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32- restore-keys : |
33- ${{ runner.os }}-maven-
39+ path : ~/.m2/repository
40+ key : ${{ runner.os }}${{ matrix.build.java }}-maven-${{ hashFiles('**/pom.xml') }}
41+ restore-keys : |
42+ ${{ runner.os }}${{ matrix.build.java }}-maven-
3443
3544 - name : Verify with Maven
36- run : mvn --batch-mode --update-snapshots --activate-profiles e2e verify
45+ run : mvn --batch-mode --update-snapshots --activate-profiles e2e,${{ matrix.build.profile }} verify
3746
3847 - name : Upload coverage to Codecov
3948
Original file line number Diff line number Diff line change 55on :
66 push :
77 branches :
8- - main
8+ - beta/new_java_build
99name : Run Release Please
1010permissions : # added using https://github.com/step-security/secure-workflows
1111 contents : read
@@ -23,17 +23,17 @@ jobs:
2323 id : release
2424 with :
2525 token : ${{secrets.GITHUB_TOKEN}}
26- default -branch : main
26+ target -branch : beta/new_java_build
2727
2828 # These steps are only run if this was a merged release-please PR
2929 - name : checkout
3030 if : ${{ steps.release.outputs.release_created }}
3131 uses : actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
32- - name : Set up JDK 8
32+ - name : Set up JDK 17
3333 if : ${{ steps.release.outputs.release_created }}
3434 uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
3535 with :
36- java-version : ' 8 '
36+ java-version : ' 17 '
3737 distribution : ' temurin'
3838 cache : maven
3939 server-id : ossrh
5454 --settings release/m2-settings.xml clean deploy
5555 env :
5656 OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
57- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
57+ OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
You can’t perform that action at this time.
0 commit comments