• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
16on:
17  push:
18    branches:
19    - main
20  pull_request:
21name: ci
22jobs:
23  units:
24    runs-on: ubuntu-latest
25    strategy:
26      fail-fast: false
27      matrix:
28        java: [8, 11, 17]
29    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
39  windows:
40    runs-on: windows-latest
41    steps:
42    - name: Support longpaths
43      run: git config --system core.longpaths true
44    - uses: actions/checkout@v3
45    - uses: actions/setup-java@v3
46      with:
47        distribution: zulu
48        java-version: 8
49    - run: java -version
50    - run: .kokoro/build.bat
51      env:
52        JOB_TYPE: test
53  dependencies:
54    runs-on: ubuntu-latest
55    strategy:
56      matrix:
57        java: [8, 11, 17]
58    steps:
59    - uses: actions/checkout@v3
60    - uses: actions/setup-java@v3
61      with:
62        distribution: zulu
63        java-version: ${{matrix.java}}
64    - run: java -version
65    - run: .kokoro/dependencies.sh
66  lint:
67    runs-on: ubuntu-latest
68    steps:
69    - uses: actions/checkout@v3
70    - uses: actions/setup-java@v3
71      with:
72        distribution: zulu
73        java-version: 11
74    - run: java -version
75    - run: .kokoro/build.sh
76      env:
77        JOB_TYPE: lint
78  clirr:
79    runs-on: ubuntu-latest
80    steps:
81    - uses: actions/checkout@v3
82    - uses: actions/setup-java@v3
83      with:
84        distribution: zulu
85        java-version: 8
86    - run: java -version
87    - run: .kokoro/build.sh
88      env:
89        JOB_TYPE: clirr
90