Skip to content

Commit

Permalink
build(github/actions): worflow for building and testing with bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaba505 committed Aug 3, 2022
1 parent 0edf700 commit efb4284
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Setup bazelisk
uses: bazelbuild/setup-bazelisk@v2

- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel

- name: Build
run: bazel build //...

- name: Test
run: bazel test //...

0 comments on commit efb4284

Please sign in to comment.