Fix Robolectric ShadowNativeBitmapTests to work with Android V. #768
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: Copybara tests | |
on: | |
pull_request: | |
branches: [ google ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
copybara-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- uses: gradle/actions/setup-gradle@v3 | |
- name: Build | |
run: | | |
SKIP_ERRORPRONE=true SKIP_JAVADOC=true \ | |
./gradlew assemble testClasses --parallel --stacktrace --no-watch-fs | |
- name: Integration tests | |
run: | | |
# Only run integration tests on Copybara PRs | |
(cd integration_tests && \ | |
SKIP_ERRORPRONE=true SKIP_JAVADOC=true \ | |
../gradlew test --info --stacktrace --continue --parallel --no-watch-fs \ | |
-Drobolectric.alwaysIncludeVariantMarkersInTestName=true \ | |
-Drobolectric.enabledSdks=34 \ | |
-Dorg.gradle.workers.max=2 \ | |
-x :integration_tests:nativegraphics:test \ | |
-x :integration_tests:dependency-on-stubs:test \ | |
) | |
- name: SdkCompat tests | |
run: | | |
# `SdkCompat tests` is run as a separate step because it has to run on all SDK levels, and | |
# the `Integration tests` step only runs on a single SDK level. | |
SKIP_ERRORPRONE=true SKIP_JAVADOC=true \ | |
./gradlew :integration_tests:dependency-on-stubs:test --info --stacktrace --continue --no-watch-fs \ | |
-Drobolectric.alwaysIncludeVariantMarkersInTestName=true \ |