Skip to content

Merge pull request #6 from authzed/tstirrat/use-bazel-for-ci #12

Merge pull request #6 from authzed/tstirrat/use-bazel-for-ci

Merge pull request #6 from authzed/tstirrat/use-bazel-for-ci #12

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [master]
permissions:
contents: read
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
submodules: 'true'
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
# This repo uses bazel as a task runner
- uses: bazel-contrib/setup-bazel@0.19.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
- name: Build
run: bazel build ...
- name: Test
run: bazel test ...