You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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:
1
+
'on':
17
2
push:
18
3
branches:
19
-
- main
20
-
pull_request:
4
+
- 1.47.x
5
+
pull_request:null
21
6
name: ci
22
7
jobs:
23
8
units:
24
9
runs-on: ubuntu-latest
25
10
strategy:
26
11
fail-fast: false
27
12
matrix:
28
-
java: [8, 11, 17, 24]
13
+
java:
14
+
- 8
15
+
- 11
16
+
- 17
17
+
- 24
29
18
steps:
30
-
- uses: actions/checkout@v4
31
-
- uses: actions/setup-java@v4
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
19
+
- uses: actions/checkout@v4
20
+
- uses: actions/setup-java@v4
21
+
with:
22
+
distribution: temurin
23
+
java-version: ${{matrix.java}}
24
+
- run: java -version
25
+
- run: .kokoro/build.sh
26
+
env:
27
+
JOB_TYPE: test
39
28
windows:
40
29
runs-on: windows-latest
41
30
steps:
42
-
- name: Support longpaths
43
-
run: git config --system core.longpaths true
44
-
- uses: actions/checkout@v4
45
-
- uses: actions/setup-java@v4
46
-
with:
47
-
distribution: temurin
48
-
java-version: 8
49
-
- run: java -version
50
-
- run: .kokoro/build.bat
51
-
env:
52
-
JOB_TYPE: test
31
+
- name: Support longpaths
32
+
run: git config --system core.longpaths true
33
+
- uses: actions/checkout@v4
34
+
- uses: actions/setup-java@v4
35
+
with:
36
+
distribution: temurin
37
+
java-version: 8
38
+
- run: java -version
39
+
- run: .kokoro/build.bat
40
+
env:
41
+
JOB_TYPE: test
53
42
dependencies:
54
43
runs-on: ubuntu-latest
55
44
strategy:
56
45
matrix:
57
-
java: [8, 11, 17, 24]
46
+
java:
47
+
- 8
48
+
- 11
49
+
- 17
50
+
- 24
58
51
steps:
59
-
- uses: actions/checkout@v4
60
-
- uses: actions/setup-java@v4
61
-
with:
62
-
distribution: temurin
63
-
java-version: ${{matrix.java}}
64
-
- run: java -version
65
-
- run: .kokoro/dependencies.sh
52
+
- uses: actions/checkout@v4
53
+
- uses: actions/setup-java@v4
54
+
with:
55
+
distribution: temurin
56
+
java-version: ${{matrix.java}}
57
+
- run: java -version
58
+
- run: .kokoro/dependencies.sh
66
59
lint:
67
60
runs-on: ubuntu-latest
68
61
steps:
69
-
- uses: actions/checkout@v4
70
-
- uses: actions/setup-java@v4
71
-
with:
72
-
distribution: temurin
73
-
java-version: 11
74
-
- run: java -version
75
-
- run: .kokoro/build.sh
76
-
env:
77
-
JOB_TYPE: lint
62
+
- uses: actions/checkout@v4
63
+
- uses: actions/setup-java@v4
64
+
with:
65
+
distribution: temurin
66
+
java-version: 11
67
+
- run: java -version
68
+
- run: .kokoro/build.sh
69
+
env:
70
+
JOB_TYPE: lint
78
71
clirr:
79
72
runs-on: ubuntu-latest
80
73
steps:
81
-
- uses: actions/checkout@v4
82
-
- uses: actions/setup-java@v4
83
-
with:
84
-
distribution: temurin
85
-
java-version: 8
86
-
- run: java -version
87
-
- run: .kokoro/build.sh
88
-
env:
89
-
JOB_TYPE: clirr
90
-
# compilation failure for sub-modules using source and target options 7 (this setting cannot be upgraded to Java 21 because some modules support max of Java 8)
91
-
# Hence compile in Java 8 and test in Java 21.
74
+
- uses: actions/checkout@v4
75
+
- uses: actions/setup-java@v4
76
+
with:
77
+
distribution: temurin
78
+
java-version: 8
79
+
- run: java -version
80
+
- run: .kokoro/build.sh
81
+
env:
82
+
JOB_TYPE: clirr
92
83
units-java21:
93
-
# Building using Java 8 and run the tests with Java 21 runtime
94
-
name: "units (21)"
84
+
name: units (21)
95
85
runs-on: ubuntu-latest
96
86
steps:
97
-
- uses: actions/checkout@v4
98
-
- uses: actions/setup-java@v4
99
-
with:
100
-
java-version: 21
101
-
distribution: temurin
102
-
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
103
-
# Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
0 commit comments