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

Commit

Permalink
ci: run bazel tests on GitHub actions (#1242)
Browse files Browse the repository at this point in the history
This will allow us to turn off Travis in this repo (Travis was running the bazel tests in addition to the gradle tests).
  • Loading branch information
chingor13 authored Nov 10, 2020
1 parent 6b53f0f commit d9f3414
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ branchProtectionRules:
requiresStrictStatusChecks: true
# List of required status check contexts that must pass for commits to be accepted to matching branches.
requiredStatusCheckContexts:
- "bazel"
- "linkage-monitor"
- "units (7)"
- "units (8)"
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,30 @@ jobs:
uses: codecov/codecov-action@v1
with:
name: actions ${{ matrix.java }}
bazel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- name: Install Bazel
run: |
wget -q "https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/$BAZEL_BINARY"
wget -q "https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/$BAZEL_BINARY.sha256"
sha256sum -c "$BAZEL_BINARY.sha256"
sudo dpkg -i "$BAZEL_BINARY"
env:
BAZEL_VERSION: 3.5.0
BAZEL_BINARY: bazel_3.5.0-linux-x86_64.deb
- name: Run bazel tests
run: bazel --batch test //... --noshow_progress --test_output=errors
- name: coverage
uses: codecov/codecov-action@v1
with:
name: actions bazel

linkage-monitor:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d9f3414

Please sign in to comment.