1
- ' on ' :
1
+ # Copyright 2022 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Github action job to test core java library features on
15
+ # downstream client libraries before they are released.
16
+ on :
2
17
push :
3
18
branches :
4
- - 2.25.x
5
- pull_request : null
19
+ - main
20
+ pull_request :
6
21
name : ci
7
22
jobs :
8
23
units :
9
24
runs-on : ubuntu-latest
10
25
strategy :
11
26
fail-fast : false
12
27
matrix :
13
- java :
14
- - 11
15
- - 17
28
+ java : [11, 17]
16
29
steps :
17
- - uses : actions/checkout@v3
18
- - uses : actions/setup-java@v3
19
- with :
20
- distribution : temurin
21
- java-version : ${{matrix.java}}
22
- - run : java -version
23
- - run : .kokoro/build.sh
24
- env :
25
- JOB_TYPE : test
30
+ - uses : actions/checkout@v3
31
+ - uses : actions/setup-java@v3
32
+ with :
33
+ distribution : temurin
34
+ java-version : ${{matrix.java}}
35
+ - run : java -version
36
+ - run : .kokoro/build.sh
37
+ env :
38
+ JOB_TYPE : test
26
39
units-java8 :
27
- name : units (8)
40
+ # Building using Java 17 and run the tests with Java 8 runtime
41
+ name : " units (8)"
28
42
runs-on : ubuntu-latest
29
43
steps :
30
44
- uses : actions/checkout@v3
31
45
- uses : actions/setup-java@v3
32
46
with :
33
47
java-version : 8
34
48
distribution : temurin
35
- - name : >-
36
- Set jvm system property environment variable for surefire plugin (unit
37
- tests)
49
+ - name : " Set jvm system property environment variable for surefire plugin (unit tests) "
50
+ # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
51
+ # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
38
52
run : echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
39
53
shell : bash
40
54
- uses : actions/setup-java@v3
@@ -47,64 +61,63 @@ jobs:
47
61
windows :
48
62
runs-on : windows-latest
49
63
steps :
50
- - name : Support longpaths
51
- run : git config --system core.longpaths true
52
- - uses : actions/checkout@v3
53
- - uses : actions/setup-java@v3
54
- with :
55
- distribution : temurin
56
- java-version : 8
57
- - run : java -version
58
- - run : .kokoro/build.bat
59
- env :
60
- JOB_TYPE : test
64
+ - name : Support longpaths
65
+ run : git config --system core.longpaths true
66
+ - uses : actions/checkout@v3
67
+ - uses : actions/setup-java@v3
68
+ with :
69
+ distribution : temurin
70
+ java-version : 8
71
+ - run : java -version
72
+ - run : .kokoro/build.bat
73
+ env :
74
+ JOB_TYPE : test
61
75
dependencies :
62
76
runs-on : ubuntu-latest
63
77
strategy :
64
78
matrix :
65
- java :
66
- - 17
79
+ java : [17]
67
80
steps :
68
- - uses : actions/checkout@v3
69
- - uses : actions/setup-java@v3
70
- with :
71
- distribution : temurin
72
- java-version : ${{matrix.java}}
73
- - run : java -version
74
- - run : .kokoro/dependencies.sh
81
+ - uses : actions/checkout@v3
82
+ - uses : actions/setup-java@v3
83
+ with :
84
+ distribution : temurin
85
+ java-version : ${{matrix.java}}
86
+ - run : java -version
87
+ - run : .kokoro/dependencies.sh
75
88
javadoc :
76
89
runs-on : ubuntu-latest
77
90
steps :
78
- - uses : actions/checkout@v3
79
- - uses : actions/setup-java@v3
80
- with :
81
- distribution : temurin
82
- java-version : 17
83
- - run : java -version
84
- - run : .kokoro/build.sh
85
- env :
86
- JOB_TYPE : javadoc
91
+ - uses : actions/checkout@v3
92
+ - uses : actions/setup-java@v3
93
+ with :
94
+ distribution : temurin
95
+ java-version : 17
96
+ - run : java -version
97
+ - run : .kokoro/build.sh
98
+ env :
99
+ JOB_TYPE : javadoc
87
100
lint :
88
101
runs-on : ubuntu-latest
89
102
steps :
90
- - uses : actions/checkout@v3
91
- - uses : actions/setup-java@v3
92
- with :
93
- distribution : temurin
94
- java-version : 11
95
- - run : java -version
96
- - run : .kokoro/build.sh
97
- env :
98
- JOB_TYPE : lint
103
+ - uses : actions/checkout@v3
104
+ - uses : actions/setup-java@v3
105
+ with :
106
+ distribution : temurin
107
+ java-version : 11
108
+ - run : java -version
109
+ - run : .kokoro/build.sh
110
+ env :
111
+ JOB_TYPE : lint
99
112
clirr :
100
113
runs-on : ubuntu-latest
101
114
steps :
102
- - uses : actions/checkout@v3
103
- - uses : actions/setup-java@v3
104
- with :
105
- distribution : temurin
106
- java-version : 8
107
- - run : java -version
108
- - run : .kokoro/build.sh
109
- env :
110
- JOB_TYPE : clirr
115
+ - uses : actions/checkout@v3
116
+ - uses : actions/setup-java@v3
117
+ with :
118
+ distribution : temurin
119
+ java-version : 8
120
+ - run : java -version
121
+ - run : .kokoro/build.sh
122
+ env :
123
+ JOB_TYPE : clirr
0 commit comments