Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit d9f3414

Browse files
authored
ci: run bazel tests on GitHub actions (#1242)
This will allow us to turn off Travis in this repo (Travis was running the bazel tests in addition to the gradle tests).
1 parent 6b53f0f commit d9f3414

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

‎.github/sync-repo-settings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ branchProtectionRules:
2828
requiresStrictStatusChecks: true
2929
# List of required status check contexts that must pass for commits to be accepted to matching branches.
3030
requiredStatusCheckContexts:
31+
- "bazel"
3132
- "linkage-monitor"
3233
- "units (7)"
3334
- "units (8)"

‎.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,30 @@ jobs:
2323
uses: codecov/codecov-action@v1
2424
with:
2525
name: actions ${{ matrix.java }}
26+
bazel:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: actions/setup-java@v1
31+
with:
32+
java-version: 8
33+
- run: java -version
34+
- name: Install Bazel
35+
run: |
36+
wget -q "https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/$BAZEL_BINARY"
37+
wget -q "https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/$BAZEL_BINARY.sha256"
38+
sha256sum -c "$BAZEL_BINARY.sha256"
39+
sudo dpkg -i "$BAZEL_BINARY"
40+
env:
41+
BAZEL_VERSION: 3.5.0
42+
BAZEL_BINARY: bazel_3.5.0-linux-x86_64.deb
43+
- name: Run bazel tests
44+
run: bazel --batch test //... --noshow_progress --test_output=errors
45+
- name: coverage
46+
uses: codecov/codecov-action@v1
47+
with:
48+
name: actions bazel
49+
2650
linkage-monitor:
2751
runs-on: ubuntu-latest
2852
steps:

0 commit comments

Comments
 (0)