Skip to content

add ci

add ci #5

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout source tree
uses: actions/[email protected]
- name: Setup bazel/bazelisk
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
external-cache: true
repository-cache: true
# TODO: use --config=ci
# bazelrc: |
# build --config=ci
bazelrc: |
build --color=yes
- name: build
run: bazel build //...
- name: test
run: bazel test //...