-
Notifications
You must be signed in to change notification settings - Fork 18
31 lines (24 loc) · 849 Bytes
/
bazel.yml
File metadata and controls
31 lines (24 loc) · 849 Bytes
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
name: Bazel build
on: [push, pull_request]
jobs:
build:
name: Run bazel
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup bazel
# install bazelisk to install the appropriate bazel version
run: |
export PATH=$PATH:$HOME/bin && mkdir -p $HOME/bin
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.5.0/bazelisk-linux-amd64 && chmod +x bazelisk-linux-amd64 && mv bazelisk-linux-amd64 $HOME/bin/bazel
wget https://github.com/bazelbuild/buildtools/releases/download/0.22.0/buildifier && chmod +x buildifier && mv buildifier $HOME/bin/
- name: Build
shell: bash
run: bazel build ...
- name: Test
shell: bash
run: bazel test ...