Skip to content

Commit af86664

Browse files
authored
ci: installing shared dependencies BOM upper-bound check (#1535)
1 parent dbed53a commit af86664

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
paths:
7+
- 'gapic-generator-java-bom/**'
8+
- 'gapic-generator-java-pom-parent/**'
9+
- 'java-shared-dependencies/**'
10+
name: shared-dependencies version check
11+
jobs:
12+
upper-bound-check:
13+
name: Shared Dependencies BOM upper-bound check
14+
runs-on: ubuntu-latest
15+
if: github.repository_owner == 'googleapis'
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: stCarolas/setup-maven@v4
19+
with:
20+
maven-version: 3.8.1
21+
- uses: actions/setup-java@v1
22+
with:
23+
java-version: 11
24+
- run: java -version
25+
- name: Install maven modules
26+
run: |
27+
mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip
28+
- name: Check the BOM content satisfies the upper-bound-check test case
29+
run: mvn -B -V -ntp verify -Dcheckstyle.skip
30+
working-directory: java-shared-dependencies/upper-bound-check

gapic-generator-java-pom-parent/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<skipUnitTests>false</skipUnitTests>
2424
<checkstyle.header.file>java.header</checkstyle.header.file>
2525

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

0 commit comments

Comments
 (0)