Skip to content

Commit

Permalink
ci: installing shared dependencies BOM upper-bound check (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo authored Mar 22, 2023
1 parent dbed53a commit af86664
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/shared_dependencies.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion gapic-generator-java-pom-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<skipUnitTests>false</skipUnitTests>
<checkstyle.header.file>java.header</checkstyle.header.file>

<!-- External dependencies, expecially gRPC and Protobuf version, should be
<!-- External dependencies, especially gRPC and Protobuf version, should be
consistent across modules in this repository -->
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
<grpc.version>1.53.0</grpc.version>
Expand Down

0 comments on commit af86664

Please sign in to comment.