-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (33 loc) · 1.13 KB
/
check_bazel_tests.yml
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
name: Check Bazel Tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Search for duplicated error codes
run: bash find_duplicate_error_codes.sh
- name: Install bazel
run: |
export ENV BAZEL_PACKAGE_VERSION="5.2.0"
export ENV BAZEL_PACKAGE_FILE="bazel_$BAZEL_PACKAGE_VERSION-linux-x86_64.deb"
export BAZEL_PACKAGE_URL="https://github.com/bazelbuild/bazel/releases/download/$BAZEL_PACKAGE_VERSION/$BAZEL_PACKAGE_FILE"
sudo apt-get -y update && \
curl -L --output "$BAZEL_PACKAGE_FILE" "$BAZEL_PACKAGE_URL" && \
sudo apt-get install -y "./$BAZEL_PACKAGE_FILE" && \
rm "$BAZEL_PACKAGE_FILE" && \
sudo apt-get -y clean && \
sudo apt-get -y autoremove
- name: Install JDK and ZMQ
run: |
sudo apt-get install -y openjdk-11-jdk libzmq3-dev
sudo apt-get -y clean && \
sudo apt-get -y autoremove
- name: Test
run: |
bazel test //javacontainer/test/...
working-directory: ./exaudfclient/base