-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (39 loc) · 1.27 KB
/
main.yml
File metadata and controls
40 lines (39 loc) · 1.27 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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
buildifier:
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/checkout@v2.3.1
- name: "Install the JDK"
uses: actions/setup-java@v1.4.3
with:
java-version: "11.0.5"
- name: Install buildifier
run: |
curl --location --fail "https://github.com/bazelbuild/buildtools/releases/download/3.5.0/buildifier" --output /tmp/buildifier
chmod +x /tmp/buildifier && echo "/tmp/" >> $GITHUB_PATH
- name: "Linting"
run: buildifier -mode check -lint warn -r .
test:
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/checkout@v2.3.1
- name: "Install the JDK"
uses: actions/setup-java@v1.4.3
with:
java-version: "11.0.5"
- name: Install bazelisk
run: |
curl --location --fail "https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-linux-amd64" --output /tmp/bazel
chmod +x /tmp/bazel && echo "/tmp/" >> $GITHUB_PATH
- name: "Running unit tests"
run: bazel test //tests:tests
- name: "Running integrations"
run: bazel test //tests/integration:does_build