Skip to content

Commit

Permalink
ci: add job to run tests with bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
danctorres committed Nov 9, 2024
1 parent 0e4f36b commit 94b9227
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/bazel_test.yml
Original file line number Diff line number Diff line change
@@ -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 //...

0 comments on commit 94b9227

Please sign in to comment.