|
| 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: |
| 17 | + push: |
| 18 | + branches: |
| 19 | + - main |
| 20 | + pull_request: |
| 21 | +name: google-auth-library-java ci |
| 22 | +env: |
| 23 | + BUILD_SUBDIR: google-auth-library-java |
| 24 | +jobs: |
| 25 | + filter: |
| 26 | + runs-on: ubuntu-latest |
| 27 | + outputs: |
| 28 | + library: ${{ steps.filter.outputs.library }} |
| 29 | + steps: |
| 30 | + - uses: actions/checkout@v4 |
| 31 | + - uses: dorny/paths-filter@v3 |
| 32 | + id: filter |
| 33 | + with: |
| 34 | + filters: | |
| 35 | + library: |
| 36 | + - 'google-auth-library-java/**' |
| 37 | + units-logging: |
| 38 | + needs: filter |
| 39 | + if: ${{ needs.filter.outputs.library == 'true' }} |
| 40 | + runs-on: ubuntu-latest |
| 41 | + strategy: |
| 42 | + fail-fast: false |
| 43 | + matrix: |
| 44 | + java: [11, 17, 21, 25] |
| 45 | + steps: |
| 46 | + - uses: actions/checkout@v4 |
| 47 | + - uses: actions/setup-java@v4 |
| 48 | + with: |
| 49 | + distribution: temurin |
| 50 | + java-version: ${{matrix.java}} |
| 51 | + - run: java -version |
| 52 | + - run: .kokoro/build.sh |
| 53 | + env: |
| 54 | + BUILD_SUBDIR: google-auth-library-java |
| 55 | + JOB_TYPE: test |
| 56 | + SUREFIRE_JVM_OPT: "-P '!slf4j2x,slf4j2x-test'" |
0 commit comments