generated from bzlparty/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 957 Bytes
/
test.yaml
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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
XDG_CACHE_HOME: ~/.cache/bazel-repo
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
bazelversion:
- 7.0.0
folder:
- "."
- "e2e"
steps:
- uses: actions/checkout@v4
- name: Mount bazel caches
uses: actions/cache@v3
with:
path: |
~/.cache/bazel
~/.cache/bazel-repo
key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE') }}
restore-keys: bazel-cache-
- name: bazel test //...
working-directory: ${{ matrix.folder }}
env:
USE_BAZEL_VERSION: ${{ matrix.bazelversion }}
run: >
bazel
--bazelrc=${{ github.workspace }}/.bazelrc
--bazelrc=${{ github.workspace }}/.github/workflows/ci.bazelrc
test //...