From 3f664d81b3dcb7d76ee5b271f0341827c4228333 Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Wed, 26 Oct 2022 16:25:07 +1100 Subject: [PATCH] Add a CI test that exercises bazel builds If it's not tested, then it doesn't work. Add a CI test that executes `bazel build //...` and `bazel test //...`, in addition to the non-bazel build system. --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2907c175..c097f837 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,20 @@ jobs: CGO_ENABLED: "1" SKIP_PYTHON_BINDINGS_TESTS: ${{ matrix.SKIP_PYTHON_BINDINGS_TESTS }} + bazel: + name: bazel test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cache/bazel + ~/.cache/bazelisk + key: ${{ runner.os }}-bazel-cache + - run: bazel build //... + - run: bazel test //... + all: name: Check all runs-on: ubuntu-latest