summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kuryloski <kuryloskip@vmware.com>2021-04-06 14:28:50 +0200
committerPhilip Kuryloski <kuryloskip@vmware.com>2021-04-07 13:57:43 +0200
commit7107674f59d22af2e81220f74c67571f5ff16599 (patch)
treea444791015ccb5e340c4a9395d944dbfe292c46d
parent44bdba127934f1ba4d76751da9216c1294f3c0c3 (diff)
downloadrabbitmq-server-git-7107674f59d22af2e81220f74c67571f5ff16599.tar.gz
Run "exclusive" bazel tests in GitHub Actions
by using the GitHub Actions worker itself. Also make such builds NOT public in buildbuddy (I plan to uses these for tests that inject AWS creds)
-rw-r--r--.github/workflows/test.yaml21
1 files changed, 18 insertions, 3 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 2294077385..8557888051 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -30,8 +30,6 @@ jobs:
build --host_java_toolchain=@buildbuddy_toolchain//:toolchain_jdk8
build --@bazel-erlang//:erlang_version=${{ matrix.erlang_version }}
- build --@bazel-erlang//:erlang_home=/usr/lib/erlang
- build --//:elixir_home=/usr/local
build --bes_results_url=https://app.buildbuddy.io/invocation/
build --bes_backend=grpcs://cloud.buildbuddy.io
@@ -41,7 +39,6 @@ jobs:
build --remote_timeout=1200
build --build_metadata=ROLE=CI
- build --build_metadata=VISIBILITY=PUBLIC
build --remote_instance_name=buildbuddy-io/buildbuddy/ci
build --spawn_strategy=remote
build --jobs=50
@@ -52,5 +49,23 @@ jobs:
- name: RUN TESTS
run: |
bazelisk test //... \
+ --@bazel-erlang//:erlang_home=/usr/lib/erlang \
+ --//:elixir_home=/usr/local \
+ --build_metadata=VISIBILITY=PUBLIC \
--test_tag_filters=-exclusive \
--verbose_failures
+ - name: CONFIGURE OTP & ELIXIR
+ uses: erlef/setup-beam@v1.7
+ with:
+ otp-version: ${{ matrix.erlang_version }}
+ elixir-version: 1.11.4
+ - name: RUN EXCLUSIVE TESTS
+ run: |
+ ERLANG_HOME="$(dirname $(dirname $(which erl)))"
+ ELIXIR_HOME="$(dirname $(dirname $(which iex)))"
+ bazelisk test //... \
+ --@bazel-erlang//:erlang_home=${ERLANG_HOME} \
+ --//:elixir_home=${ELIXIR_HOME} \
+ --test_strategy=exclusive \
+ --test_tag_filters=exclusive \
+ --verbose_failures