Skip to content

infra: Add pull request presubmit checks, continuous main checks #2

infra: Add pull request presubmit checks, continuous main checks

infra: Add pull request presubmit checks, continuous main checks #2

Workflow file for this run

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 ./...