-
Notifications
You must be signed in to change notification settings - Fork 20
35 lines (34 loc) · 1004 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
folder: [".", "examples/multiple-inputs", "examples/typical"]
version: ["7.1.0", "8.0.0rc1"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.9.1
with:
repository-cache: true
bazelrc: common --announce_rc --color=yes --enable_workspace=false
- name: Configure Bazel version
working-directory: ${{ matrix.folder }}
run: |
echo "${{ matrix.version }}" > .bazelversion
bazel version
- name: Build
working-directory: ${{ matrix.folder }}
run: bazel build ...
- name: Test
working-directory: ${{ matrix.folder }}
run: bazel test ...