From 94b9227f551bef51be39898ebf88e4d17e85111b Mon Sep 17 00:00:00 2001 From: dtor Date: Sat, 9 Nov 2024 00:05:02 +0000 Subject: [PATCH] ci: add job to run tests with bazel --- .github/workflows/bazel_test.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/bazel_test.yml diff --git a/.github/workflows/bazel_test.yml b/.github/workflows/bazel_test.yml new file mode 100644 index 00000000..823d8f7b --- /dev/null +++ b/.github/workflows/bazel_test.yml @@ -0,0 +1,34 @@ +name: Bazel Test + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Cache bazel + uses: actions/cache@v2 + env: + cache-name: bazel-cache + with: + path: | + ~/.cache/bazelisk + ~/.cache/bazel + key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }} + restore-keys: | + ${{ runner.os }}-${{ env.cache-name }}-development + + - name: Checkout code + uses: actions/checkout@v3 + + - name: Run Bazel test + run: | + bazel test //... +