Skip to content

SystemTests

SystemTests #14

Workflow file for this run

name: SystemTests
on:
pull_request:
branches:
- main
schedule:
# Trigger on start of the day every working day (stolen from player nightly)
- cron: '0 0 * * MON-FRI'
workflow_dispatch:
jobs:
system-tests:
runs-on: bitdash-4core
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
distribution: 'adopt'
java-version: '17'
- name: Setup Android
uses: android-actions/setup-android@v3
- 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: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
cache-read-only: false
# Collector Test
- name: Tests Collector
if: always()
run: |
./gradlew :collector:pixel6api34DebugAndroidTest
# Collector Bitmovin Player Test
- name: Tests Collector Bitmovin Player
if: always()
run: |
./gradlew :collector-bitmovin-player:pixel6api34DebugAndroidTest
# Collector Exo Player Test
- name: Tests Collector Exoplayer
if: always()
run: |
./gradlew :collector-exoplayer:pixel6api34DebugAndroidTest
# Collector Media3 Exo Player Test
- name: Tests Collector Media3 Exoplayer
if: always()
run: |
./gradlew :collector-media3-exoplayer:pixel6api34DebugAndroidTest
# Collector Amazon IVS Test
- name: Tests Collector Amazon IVS
if: always()
run: |
./gradlew :collector-amazon-ivs:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notClass=com.bitmovin.analytics.amazon.ivs.TVBasicScenariosTest
# Report
- name: Copying Reports
if: always()
id: copy-reports
run: |
mkdir reports
cp -r collector/build/reports/androidTests/managedDevice/debug/pixel6api34/ reports/collector
cp -r collector-bitmovin-player/build/reports/androidTests/managedDevice/debug/pixel6api34/ reports/collector-bitmovin-player
cp -r collector-exoplayer/build/reports/androidTests/managedDevice/debug/pixel6api34/ reports/collector-exoplayer
cp -r collector-media3-exoplayer/build/reports/androidTests/managedDevice/debug/pixel6api34/ reports/collector-media3-exoplayer
cp -r collector-amazon-ivs/build/reports/androidTests/managedDevice/debug/pixel6api34/ reports/collector-amazon-ivs
cp .github/tests-report/INDEX_TEST_REPORTS.html reports/index.html
./.github/tests-report/report_enhancer.sh reports
- name: Upload Reports
uses: actions/upload-artifact@v4
if: always()
with:
name: tests-report
path: reports
# Displaying the Results... Might be feasible : https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/