|
| 1 | +# Copyright 2025 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 | + paths: |
| 22 | + - java-sdk-logging/** |
| 23 | + |
| 24 | +name: java-sdk-logging-ci |
| 25 | +jobs: |
| 26 | + unit-test: |
| 27 | + runs-on: ubuntu-latest |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + - uses: actions/setup-java@v4 |
| 31 | + with: |
| 32 | + java-version: 8 |
| 33 | + distribution: temurin |
| 34 | + - name: Install parent module |
| 35 | + run: | |
| 36 | + mvn install -B -ntp -pl gapic-generator-java-pom-parent |
| 37 | + - name: Unit Tests |
| 38 | + working-directory: java-sdk-logging |
| 39 | + run: | |
| 40 | + mvn test -B -ntp -Dcheckstyle.skip -Dfmt.skip |
| 41 | + module-lint: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + - uses: actions/setup-java@v4 |
| 46 | + with: |
| 47 | + java-version: 11 |
| 48 | + distribution: temurin |
| 49 | + - name: Install parent module |
| 50 | + run: | |
| 51 | + mvn install -B -ntp -pl gapic-generator-java-pom-parent |
| 52 | + - name: Java Linter |
| 53 | + run: | |
| 54 | + mvn -B -ntp fmt:check |
| 55 | + working-directory: java-sdk-logging |
0 commit comments