Skip to content

Support Robolectric 4.11 #126

Support Robolectric 4.11

Support Robolectric 4.11 #126

Workflow file for this run

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 .