Update GMA SDK to 25.2.0 #80
Workflow file for this run
This file contains hidden or 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: Pull Request Checks | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review, labeled] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx3g" | |
| jobs: | |
| build-prebidmobile-frameworks: | |
| name: Build PrebidMobile Frameworks | |
| if: ${{ !github.event.pull_request.draft }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Gradle cache | |
| uses: gradle/gradle-build-action@v3 | |
| - name: Build frameworks (no JAR) | |
| run: scripts/buildPrebidMobile.sh -nojar | |
| unit-tests: | |
| name: Run Unit Tests - Prebid Mobile | |
| if: ${{ !github.event.pull_request.draft }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Gradle cache | |
| uses: gradle/gradle-build-action@v3 | |
| - name: Test Frameworks | |
| run: scripts/testPrebidMobile.sh | |
| build-java-demo: | |
| name: Build Java Demo | |
| if: ${{!github.event.pull_request.draft && (contains(github.head_ref, 'feature/release') || contains(toJson(github.event.pull_request.labels), 'run-full-tests'))}} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Gradle cache | |
| uses: gradle/gradle-build-action@v3 | |
| - name: Assemble Java demo | |
| run: ./gradlew PrebidDemoJava:assembleDebug | |
| build-internal-test-app: | |
| name: Build Internal Test App | |
| if: ${{!github.event.pull_request.draft && (contains(github.head_ref, 'feature/release') || contains(toJson(github.event.pull_request.labels), 'run-full-tests'))}} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Gradle cache | |
| uses: gradle/gradle-build-action@v3 | |
| - name: Assemble internal test app | |
| run: ./gradlew PrebidInternalTestApp:assembleDebug | |
| build-nextgen-test-app: | |
| name: Build Next-Gen Demo App | |
| if: ${{!github.event.pull_request.draft && (contains(github.head_ref, 'feature/release') || contains(toJson(github.event.pull_request.labels), 'run-full-tests'))}} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Gradle cache | |
| uses: gradle/gradle-build-action@v3 | |
| - name: Assemble Next-Gen demo app | |
| run: ./gradlew PrebidNextGenDemo:assembleDebug | |
| ui-smoke-tests: | |
| name: Run Smoke UI Tests - Demo App Kotlin - Android 11 | |
| if: ${{!github.event.pull_request.draft && (contains(github.head_ref, 'feature/release') || contains(toJson(github.event.pull_request.labels), 'run-full-tests'))}} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: gradle | |
| - name: Set up Gradle cache | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Enable KVM | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - name: Cache AVD | |
| id: avd-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.android/avd/* | |
| ~/.android/adb* | |
| key: avd-api33 | |
| - name: Create AVD snapshot | |
| if: steps.avd-cache.outputs.cache-hit != 'true' | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: 33 | |
| arch: x86_64 | |
| target: google_apis | |
| force-avd-creation: false | |
| emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| disable-animations: false | |
| script: echo "AVD snapshot created" | |
| - name: Run connected tests | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: 33 | |
| arch: x86_64 | |
| target: google_apis | |
| force-avd-creation: false | |
| emulator-boot-timeout: 300 | |
| emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| disable-animations: true | |
| script: ./gradlew PrebidDemoKotlin:connectedDebugAndroidTest |