CI #751
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: CI | |
on: | |
push: | |
branches: [main] | |
tags: ['v*'] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '15 22 * * *' | |
workflow_dispatch: {} # support manual runs | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-24.04, macos-latest] | |
name: Unit tests | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/bazel | |
key: ${{ runner.os }}-build-cache | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Make | |
run: choco install make | |
if: runner.os == 'Windows' | |
- name: Install go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
cache: true | |
- name: Execute tests | |
run: make test |