Skip to content

Commit df32ad3

Browse files
authored
chore: add CI test for Gradle builds on generated libraries (#896)
* chore: test Gradle builds on generated libraries * chore: empty commit * chore: sync googleapis and disco-to-proto3-converter repos * chore: update integration golden files * chore: ./gradle build instead of ./gradlew check * chore: split into two steps
1 parent 99b5245 commit df32ad3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,25 @@ jobs:
4646
- name: Integration Tests
4747
run: bazel --batch test //test/integration/...
4848

49+
- name: Gradle Build Generated Storage Client Library
50+
run: |
51+
echo "Building Storage lib from generated source..."
52+
mkdir /tmp/java-storage
53+
tar zxvf bazel-bin/test/integration/google-cloud-storage-v2-java.tar.gz -C /tmp/java-storage
54+
pushd /tmp/java-storage/google-cloud-storage-v2-java
55+
./gradlew clean build publishToMavenLocal
56+
popd
57+
58+
- name: Gradle Build Generated Compute Client Library
59+
run: |
60+
echo "Building Compute lib from generated source..."
61+
mkdir /tmp/java-compute
62+
bazel --batch build @com_google_googleapis//google/cloud/compute/v1small:google-cloud-compute-small-v1-java
63+
tar zxvf bazel-bin/external/com_google_googleapis/google/cloud/compute/v1small/google-cloud-compute-small-v1-java.tar.gz -C /tmp/java-compute
64+
pushd /tmp/java-compute/google-cloud-compute-small-v1-java
65+
./gradlew clean build publishToMavenLocal
66+
popd
67+
4968
- uses: actions/upload-artifact@v2
5069
if: ${{ failure() }}
5170
with:

0 commit comments

Comments
 (0)