File tree 5 files changed +272
-131
lines changed
5 files changed +272
-131
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,14 @@ permissions:
16
16
17
17
jobs :
18
18
build :
19
-
20
19
runs-on : ubuntu-latest
21
20
22
21
steps :
23
22
- uses : actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
24
23
- name : Set up JDK 8
25
24
uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
26
25
with :
27
- java-version : ' 8 '
26
+ java-version : ' 17 '
28
27
distribution : ' temurin'
29
28
cache : maven
30
29
server-id : ossrh
35
34
uses : actions/cache@36f1e144e1c8edb0a652766b484448563d8baf46
36
35
with :
37
36
path : ~/.m2/repository
38
- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
37
+ key : ${{ runner.os }}-17- maven-${{ hashFiles('**/pom.xml') }}
39
38
restore-keys : |
40
- ${{ runner.os }}-maven-
39
+ ${{ runner.os }}-17- maven-
41
40
42
41
- name : Configure GPG Key
43
42
run : |
60
59
# Add -SNAPSHOT before deploy
61
60
- name : Add SNAPSHOT
62
61
run : mvn versions:set -DnewVersion='${project.version}-SNAPSHOT'
63
-
62
+
64
63
- name : Deploy
65
64
run : |
66
65
mvn --batch-mode \
Original file line number Diff line number Diff line change @@ -7,17 +7,26 @@ permissions:
7
7
8
8
jobs :
9
9
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}}
11
20
steps :
12
21
- name : Check out the code
13
22
uses : actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
14
23
15
24
- name : Set up JDK 8
16
25
uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
17
26
with :
18
- java-version : ' 8 '
19
- distribution : ' temurin'
20
- cache : maven
27
+ java-version : ${{ matrix.build.java }}
28
+ distribution : ' temurin'
29
+ cache : maven
21
30
22
31
- name : Initialize CodeQL
23
32
uses : github/codeql-action/init@0a35e8f6866a39b001e5f7ad1d0daf9836786896
@@ -27,13 +36,13 @@ jobs:
27
36
- name : Cache local Maven repository
28
37
uses : actions/cache@36f1e144e1c8edb0a652766b484448563d8baf46
29
38
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-
34
43
35
44
- 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
37
46
38
47
- name : Upload coverage to Codecov
39
48
Original file line number Diff line number Diff line change 5
5
on :
6
6
push :
7
7
branches :
8
- - main
8
+ - beta/new_java_build
9
9
name : Run Release Please
10
10
permissions : # added using https://github.com/step-security/secure-workflows
11
11
contents : read
@@ -23,17 +23,17 @@ jobs:
23
23
id : release
24
24
with :
25
25
token : ${{secrets.GITHUB_TOKEN}}
26
- default -branch : main
26
+ target -branch : beta/new_java_build
27
27
28
28
# These steps are only run if this was a merged release-please PR
29
29
- name : checkout
30
30
if : ${{ steps.release.outputs.release_created }}
31
31
uses : actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
32
- - name : Set up JDK 8
32
+ - name : Set up JDK 17
33
33
if : ${{ steps.release.outputs.release_created }}
34
34
uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
35
35
with :
36
- java-version : ' 8 '
36
+ java-version : ' 17 '
37
37
distribution : ' temurin'
38
38
cache : maven
39
39
server-id : ossrh
54
54
--settings release/m2-settings.xml clean deploy
55
55
env :
56
56
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