Skip to content

Commit

Permalink
[ci] Run the format test before anything else in the rbe build
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jun 19, 2023
1 parent 6a49159 commit 79c1a4c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/github-actions/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ set -eufo pipefail
# We want to see what's going on
set -x

# Fail the build if the format script needs to be re-run
./scripts/format.sh
git diff --exit-code

# We want to use a pre-built Ruby version
echo 'RUBY_VERSION = "jruby-9.4.2.0"' >rb/ruby_version.bzl

# The NPM repository rule wants to write to the HOME directory
# but that's configured for the remote build machines, so run
# that repository rule first so that the subsequent remote
# build runs successfully.
bazel query @npm//:all
# build runs successfully. We don't care what the output is.
bazel query @npm//:all >/dev/null

# Now run the tests. The engflow build uses pinned browsers
# so this should be fine
bazel test --config=remote --keep_going //java/...
bazel test --config=remote-ci --keep_going //java/...

0 comments on commit 79c1a4c

Please sign in to comment.