-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (54 loc) · 1.62 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
pull_request:
jobs:
buildifier:
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/[email protected]
- name: "Install JDK 11"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "11"
- name: "Setup Bazelisk"
uses: bazelbuild/setup-bazelisk@v2
- name: "Linting Starlark"
run: bazel run @buildifier_prebuilt//:buildifier -- -mode check -lint warn -r .
build-bzlmod:
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/[email protected]
- name: "Install JDK 11"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "11"
- name: "Setup Bazelisk"
uses: bazelbuild/setup-bazelisk@v2
- name: "Configure Bazel"
run: cp .github/workflows/ci.bazelrc .
- name: "Build"
run: bazel build //... --enable_bzlmod=True
- name: "Unit tests"
run: bazel test //... --enable_bzlmod=True
- name: "Integration tests"
run: bash tests/integration/suite.sh
build-workspace:
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/[email protected]
- name: "Install JDK 11"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "11"
- name: "Setup Bazelisk"
uses: bazelbuild/setup-bazelisk@v2
- name: "Configure Bazel"
run: cp .github/workflows/ci.bazelrc .
- name: "Build"
run: bazel build //... --enable_bzlmod=False