Skip to content

Commit 693d841

Browse files
authored
ci: configure the protected branch (googleapis#1634)
Configures CI for branch
1 parent 76dae57 commit 693d841

File tree

2 files changed

+189
-195
lines changed

2 files changed

+189
-195
lines changed

.github/workflows/ci.yaml

Lines changed: 54 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,78 @@
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:
1+
'on':
172
push:
183
branches:
19-
- main
20-
pull_request:
4+
- 1.41.x
5+
pull_request: null
216
name: ci
227
jobs:
238
units:
249
runs-on: ubuntu-latest
2510
strategy:
2611
fail-fast: false
2712
matrix:
28-
java: [8, 11, 17]
13+
java:
14+
- 8
15+
- 11
16+
- 17
2917
steps:
30-
- uses: actions/checkout@v3
31-
- uses: actions/setup-java@v3
32-
with:
33-
distribution: zulu
34-
java-version: ${{matrix.java}}
35-
- run: java -version
36-
- run: .kokoro/build.sh
37-
env:
38-
JOB_TYPE: test
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-java@v3
20+
with:
21+
distribution: zulu
22+
java-version: ${{matrix.java}}
23+
- run: java -version
24+
- run: .kokoro/build.sh
25+
env:
26+
JOB_TYPE: test
3927
windows:
4028
runs-on: windows-latest
4129
steps:
42-
- uses: actions/checkout@v3
43-
- uses: actions/setup-java@v3
44-
with:
45-
distribution: zulu
46-
java-version: 8
47-
- run: java -version
48-
- run: .kokoro/build.bat
49-
env:
50-
JOB_TYPE: test
30+
- uses: actions/checkout@v3
31+
- uses: actions/setup-java@v3
32+
with:
33+
distribution: zulu
34+
java-version: 8
35+
- run: java -version
36+
- run: .kokoro/build.bat
37+
env:
38+
JOB_TYPE: test
5139
dependencies:
5240
runs-on: ubuntu-latest
5341
strategy:
5442
matrix:
55-
java: [8, 11, 17]
43+
java:
44+
- 8
45+
- 11
46+
- 17
5647
steps:
57-
- uses: actions/checkout@v3
58-
- uses: actions/setup-java@v3
59-
with:
60-
distribution: zulu
61-
java-version: ${{matrix.java}}
62-
- run: java -version
63-
- run: .kokoro/dependencies.sh
48+
- uses: actions/checkout@v3
49+
- uses: actions/setup-java@v3
50+
with:
51+
distribution: zulu
52+
java-version: ${{matrix.java}}
53+
- run: java -version
54+
- run: .kokoro/dependencies.sh
6455
lint:
6556
runs-on: ubuntu-latest
6657
steps:
67-
- uses: actions/checkout@v3
68-
- uses: actions/setup-java@v3
69-
with:
70-
distribution: zulu
71-
java-version: 11
72-
- run: java -version
73-
- run: .kokoro/build.sh
74-
env:
75-
JOB_TYPE: lint
58+
- uses: actions/checkout@v3
59+
- uses: actions/setup-java@v3
60+
with:
61+
distribution: zulu
62+
java-version: 11
63+
- run: java -version
64+
- run: .kokoro/build.sh
65+
env:
66+
JOB_TYPE: lint
7667
clirr:
7768
runs-on: ubuntu-latest
7869
steps:
79-
- uses: actions/checkout@v3
80-
- uses: actions/setup-java@v3
81-
with:
82-
distribution: zulu
83-
java-version: 8
84-
- run: java -version
85-
- run: .kokoro/build.sh
86-
env:
87-
JOB_TYPE: clirr
70+
- uses: actions/checkout@v3
71+
- uses: actions/setup-java@v3
72+
with:
73+
distribution: zulu
74+
java-version: 8
75+
- run: java -version
76+
- run: .kokoro/build.sh
77+
env:
78+
JOB_TYPE: clirr

0 commit comments

Comments
 (0)