From af866649acb6d223e6e4562e6ae4c483aac269cd Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Wed, 22 Mar 2023 16:57:59 -0400 Subject: [PATCH] ci: installing shared dependencies BOM upper-bound check (#1535) --- .github/workflows/shared_dependencies.yaml | 30 ++++++++++++++++++++++ gapic-generator-java-pom-parent/pom.xml | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/shared_dependencies.yaml diff --git a/.github/workflows/shared_dependencies.yaml b/.github/workflows/shared_dependencies.yaml new file mode 100644 index 0000000000..047b647dc9 --- /dev/null +++ b/.github/workflows/shared_dependencies.yaml @@ -0,0 +1,30 @@ +on: + push: + branches: + - main + pull_request: + paths: + - 'gapic-generator-java-bom/**' + - 'gapic-generator-java-pom-parent/**' + - 'java-shared-dependencies/**' +name: shared-dependencies version check +jobs: + upper-bound-check: + name: Shared Dependencies BOM upper-bound check + runs-on: ubuntu-latest + if: github.repository_owner == 'googleapis' + steps: + - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 + - uses: actions/setup-java@v1 + with: + java-version: 11 + - run: java -version + - name: Install maven modules + run: | + mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip + - name: Check the BOM content satisfies the upper-bound-check test case + run: mvn -B -V -ntp verify -Dcheckstyle.skip + working-directory: java-shared-dependencies/upper-bound-check \ No newline at end of file diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index 9421307931..82bb007741 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -23,7 +23,7 @@ false java.header - 1.3.2 1.53.0