-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (40 loc) · 1.13 KB
/
ci.yml
File metadata and controls
43 lines (40 loc) · 1.13 KB
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
36
37
38
39
40
41
42
43
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/module", "examples/workspace"]
version: ["7.x", "8.x", "9.*"]
os: ["ubuntu-latest", "windows-latest"]
exclude:
- folder: "examples/workspace"
version: "9.*"
runs-on: ${{ matrix.os }}
env:
USE_BAZEL_VERSION: ${{ matrix.version }}
steps:
- uses: actions/checkout@v6
- uses: bazel-contrib/setup-bazel@0.16.0
with:
repository-cache: true
bazelrc: common --announce_rc --color=yes --enable_workspace
- name: Build
working-directory: ${{ matrix.folder }}
run: bazel build ...
- name: Test
working-directory: ${{ matrix.folder }}
run: bazel test ...
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- working-directory: examples/workspace
run: ./minimal_download_test.sh