From eee46fe2cbc466549115b943a79d7863bdc74c40 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Mon, 17 Apr 2023 12:14:51 -0400 Subject: [PATCH] test: validation for gapic-generator-java-bom (#1629) * test: validation for gapic-generator-java-bom --- .github/workflows/ci.yaml | 20 ++++++++++++++++++-- gapic-generator-java-bom/pom.xml | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b3f7405e7c..6d4996a246 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \ -Dfmt.skip -DenableTestCoverage - run: bazelisk version - - name: Install maven modules + - name: Install Maven modules run: | mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip - name: Integration Tests @@ -187,7 +187,7 @@ jobs: java-version: ${{ matrix.java }} distribution: temurin - run: mvn -version - - name: Install maven modules + - name: Install Maven modules run: | mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip - name: Java Linter @@ -218,3 +218,19 @@ jobs: -P enable-integration-tests \ --batch-mode \ --no-transfer-progress + gapic-generator-java-bom: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: 11 + distribution: temurin + cache: maven + - name: Install Maven modules to local Maven repository + run: | + mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip + - name: Validate gapic-generator-java-bom + uses: googleapis/java-cloud-bom/tests/validate-bom@main + with: + bom-path: gapic-generator-java-bom/pom.xml diff --git a/gapic-generator-java-bom/pom.xml b/gapic-generator-java-bom/pom.xml index 3d6560c25a..3dd0aa4a0a 100644 --- a/gapic-generator-java-bom/pom.xml +++ b/gapic-generator-java-bom/pom.xml @@ -115,4 +115,4 @@ - \ No newline at end of file +