blob: 0519ac58f1b9bbaef83f21d576781cd611a35c1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
name: Test Erlang Git Master
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
jobs:
test-erlang-git:
name: Test (Erlang Git Master)
runs-on: ubuntu-18.04
timeout-minutes: 120
steps:
- name: CHECKOUT REPOSITORY
uses: actions/checkout@v2.4.0
- name: UPDATE RBE IMAGE SHA
env:
IMAGE: pivotalrabbitmq/rabbitmq-server-buildenv
TAG: linux-erlang-git-master
run: |
# buildbuddy caches the container image, so we must use a specific sha to ensure
# the latest is used
DIGEST="$(skopeo inspect --format '{{.Digest}}' docker://${IMAGE}:${TAG})"
echo "Will use ${IMAGE}@${DIGEST}"
sudo npm install --global --silent @bazel/buildozer
npx buildozer \
"dict_set exec_properties container-image:docker://${IMAGE}@${DIGEST}" \
//:erlang_git_platform
- name: CONFIGURE BAZEL
run: |
echo "${{ secrets.BUILDBUDDY_CERT }}" > buildbuddy-cert.pem
echo "${{ secrets.BUILDBUDDY_KEY }}" > buildbuddy-key.pem
cat << EOF >> user.bazelrc
build:buildbuddy --tls_client_certificate=buildbuddy-cert.pem
build:buildbuddy --tls_client_key=buildbuddy-key.pem
build:buildbuddy --build_metadata=ROLE=CI
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-erlang-git
EOF
#! - name: Setup tmate session
#! uses: mxschmitt/action-tmate@v3
- name: RUN TESTS
run: |
bazelisk test //... \
--config=rbe-git \
--test_tag_filters=-mixed-version-cluster,-exclusive,-aws \
--verbose_failures
|