Set -ex in test_java.yml

This will cause the script to fail if any command fails, which will make it easier to debug failures.

PiperOrigin-RevId: 658878371
pull/17697/head
Deanna Garcia 4 months ago committed by Copybara-Service
parent 072fc19241
commit 8714892d19
  1. 1
      .github/workflows/test_java.yml

@ -95,6 +95,7 @@ jobs:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }} credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-cache: java_linux/11 bazel-cache: java_linux/11
bash: | bash: |
set -ex
bazel build //java:release bazel build //java:release
mvn install:install-file -Dfile=bazel-bin/java/core/core_mvn-project.jar -DpomFile=bazel-bin/java/core/core_mvn-pom.xml mvn install:install-file -Dfile=bazel-bin/java/core/core_mvn-project.jar -DpomFile=bazel-bin/java/core/core_mvn-pom.xml
mvn install:install-file -Dfile=bazel-bin/java/core/lite_mvn-project.jar -DpomFile=bazel-bin/java/core/lite_mvn-pom.xml mvn install:install-file -Dfile=bazel-bin/java/core/lite_mvn-project.jar -DpomFile=bazel-bin/java/core/lite_mvn-pom.xml

Loading…
Cancel
Save