Skip to content

Commit

Permalink
chore: add CI test for Gradle builds on generated libraries (#896)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
chanseokoh authored Jan 11, 2022
1 parent 99b5245 commit df32ad3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,25 @@ jobs:
- name: Integration Tests
run: bazel --batch test //test/integration/...

- name: Gradle Build Generated Storage Client Library
run: |
echo "Building Storage lib from generated source..."
mkdir /tmp/java-storage
tar zxvf bazel-bin/test/integration/google-cloud-storage-v2-java.tar.gz -C /tmp/java-storage
pushd /tmp/java-storage/google-cloud-storage-v2-java
./gradlew clean build publishToMavenLocal
popd
- name: Gradle Build Generated Compute Client Library
run: |
echo "Building Compute lib from generated source..."
mkdir /tmp/java-compute
bazel --batch build @com_google_googleapis//google/cloud/compute/v1small:google-cloud-compute-small-v1-java
tar zxvf bazel-bin/external/com_google_googleapis/google/cloud/compute/v1small/google-cloud-compute-small-v1-java.tar.gz -C /tmp/java-compute
pushd /tmp/java-compute/google-cloud-compute-small-v1-java
./gradlew clean build publishToMavenLocal
popd
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
Expand Down

0 comments on commit df32ad3

Please sign in to comment.