Skip to content

WIP: Fix ANR caused by operationRepo.enqueue while loading is in progress #872

WIP: Fix ANR caused by operationRepo.enqueue while loading is in progress

WIP: Fix ANR caused by operationRepo.enqueue while loading is in progress #872

Workflow file for this run

name: Test
on:
pull_request:
branches: "**"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: "[Setup] Java"
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: "[Setup] Android"
uses: android-actions/setup-android@v3
with:
cmdline-tools-version: 10406996
log-accepted-android-sdk-licenses: false
- name: "[Test] Linting"
working-directory: OneSignalSDK
run: |
./gradlew ktlintCheck --console=plain
- name: "[Test] SDK Unit Tests"
working-directory: OneSignalSDK
run: |
./gradlew testReleaseUnitTest --console=plain --continue
- name: Unit tests results
if: failure()
uses: actions/upload-artifact@v3
with:
name: unit-tests-results
path: OneSignalSDK/unittest/build