-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (54 loc) · 1.58 KB
/
tests.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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
# Bazelisk is included in github runners
# Bazel cache: https://docs.bazel.build/versions/main/output_directories.html
# NOTE: Cache path doesn't support env expansion
linux:
runs-on: ubuntu-latest
steps:
# Caches and restores the bazelisk download directory, the bazel build directory.
- name: Cache bazel
uses: actions/cache@v2
with:
path: |
~/.cache/bazelisk
~/.cache/bazel
key: ${{ runner.os }}-bazel-cache
- uses: actions/checkout@v2
- name: bazel test
run: make test
macos:
runs-on: macos-latest
steps:
# Caches and restores the bazelisk download directory, the bazel build directory.
- name: Cache bazel
uses: actions/cache@v2
with:
path: |
~/.cache/bazelisk
/private/var/tmp/_bazel_runner
key: ${{ runner.os }}-bazel-cache
- uses: actions/checkout@v2
- name: bazel test
run: make test
# Disabled due to error in protobuf on Windoes
# windows:
# runs-on: windows-latest
# steps:
# # Caches and restores the bazelisk download directory, the bazel build directory.
# - name: Cache bazel
# uses: actions/cache@v2
# with:
# path: |
# ~\AppData\Local\bazelisk
# ~\_bazel_runneradmin
# key: ${{ runner.os }}-bazel-cache
# - uses: actions/checkout@v2
# - name: bazel test
# run: make test