-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (39 loc) · 964 Bytes
/
build.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
36
37
38
39
name: Build
on:
pull_request:
push:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: bazel
- name: Configure bazel
run: .github/configure-bazel
- name: Test
run:
bazel test tools/bazel:bazelrc.diff tools/lint:format_test
tools/lint:lint_test
# needs rules_file to work with generate directories tools/javascript:js_diff
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
- name: Configure bazel
run: .github/configure-bazel
- name: Test
run: bazel test :test