Skip to content

add a ci job for the tests #4

add a ci job for the tests

add a ci job for the tests #4

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
# Cancels a previous run if a new commit is made on the same pull request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Bazel
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Bazel tests
run: bazel test src:all