Support Robolectric 4.11 #126
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |