Skip to content

Commit

Permalink
Cache and return exit code
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Feb 10, 2023
1 parent f45dc4b commit 677d752
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/bazel-ci-jammy/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ ${BAZEL} build $BAZEL_ARGS
echo ::endgroup::

echo ::group::Bazel test
set +e # Don't stop on error for tests
${BAZEL} test $BAZEL_ARGS
EXIT_CODE=0
${BAZEL} test $BAZEL_ARGS || EXIT_CODE=$?
echo ::endgroup::

cp -RL ${WORKSPACE}/bazel-testlogs/* ${GITHUB_WORKSPACE}/bazel-testlogs/

exit $EXIT_CODE

0 comments on commit 677d752

Please sign in to comment.