Skip to content

ci: Add a bazel test step to the CI. #34

ci: Add a bazel test step to the CI.

ci: Add a bazel test step to the CI. #34

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
compiler: [ gcc, clang ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
sudo apt-get install -y \
curl \
scons \
bison \
flex \
dejagnu \
lcov \
${{ matrix.compiler }}
- name: test
run: scons coverage=yes check coverage.info
env:
CC: ${{ matrix.compiler }}
- uses: codecov/codecov-action@v4
with:
file: coverage.info
- name: distcheck
run: scons distcheck
env:
CC: ${{ matrix.compiler }}
bazel_test:
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
- run: bazel test //...