infra: Add pull request presubmit checks, continuous main
checks
#2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "presubmit" | |
on: | |
push: | |
branches: | |
- master | |
- release/* | |
tags: | |
- v* | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}.${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
bazel-builder: | |
# TODO(scott): Move to CI runners | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bazelbuild/setup-bazelisk@v3 | |
- name: Mount bazel cache | |
uses: actions/cache@v4 | |
with: | |
path: "~/.cache/bazel" | |
key: bazel | |
- name: run all tests | |
run: | | |
bazel test --config=bot //... | |
golang-builder: | |
# TODO(scott): Move to CI runners | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: run all tests | |
run: | | |
go build ./... | |
go test ./... |