-
Notifications
You must be signed in to change notification settings - Fork 17
56 lines (55 loc) · 1.72 KB
/
ci.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
55
56
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/checkout@v4
- name: "Install JDK 11"
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "11"
- name: "Setup Bazelisk"
uses: bazelbuild/setup-bazelisk@v2
- name: "Building //bazel:android-all"
run: bazel build //bazel:android-all --enable_bzlmod=false
- name: "Building //bazel:android-all with bzlmod"
run: bazel build //bazel:android-all --enable_bzlmod=true
integration-tests:
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/checkout@v4
- name: "Install JDK 11"
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "11"
- name: "Setup Bazelisk"
uses: bazelbuild/setup-bazelisk@v2
- name: "Running integration tests"
working-directory: examples/simple
run: bazel test //:SparseArraySetTest --enable_bzlmod=false
- name: "Running integration tests with bzlmod"
working-directory: examples/simple
run: bazel test //:SparseArraySetTest --enable_bzlmod=true
buildifier:
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/checkout@v4
- name: "Install JDK 11"
uses: actions/setup-java@v3
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 .