SentryCheckIn annotation and advice config for Spring #1578
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: AGP Matrix Compatibility | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
pull_request: | |
jobs: | |
cancel-previous-workflow: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # pin@0.11.0 | |
with: | |
access_token: ${{ github.token }} | |
agp-matrix-compatibility: | |
timeout-minutes: 30 | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
agp: [ '8.0.0','8.1.0-alpha11' ] | |
integrations: [ true, false ] | |
name: AGP Matrix Release - AGP ${{ matrix.agp }} - Integrations ${{ matrix.integrations }} | |
env: | |
VERSION_AGP: ${{ matrix.agp }} | |
APPLY_SENTRY_INTEGRATIONS: ${{ matrix.integrations }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc # pin@v2 | |
- name: Setup Java Version | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
# Clean, build and release a test apk | |
- name: Make assembleUiTests | |
run: make assembleUiTests | |
# We stop gradle at the end to make sure the cache folders | |
# don't contain any lock files and are free to be cached. | |
- name: Make stop | |
run: make stop | |
# We tried to use the cache action to cache gradle stuff, but it made tests slower and timeout | |
- name: Run instrumentation tests | |
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b # pin@v2 | |
with: | |
api-level: 30 | |
force-avd-creation: false | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
disable-spellchecker: true | |
target: 'aosp_atd' | |
channel: canary # Necessary for ATDs | |
script: ./gradlew sentry-android-integration-tests:sentry-uitest-android:connectedReleaseAndroidTest -DtestBuildType=release --daemon |