Skip to content

PERA-1694 :: Add in Play Install Referrer tracking (#160) #1240

PERA-1694 :: Add in Play Install Referrer tracking (#160)

PERA-1694 :: Add in Play Install Referrer tracking (#160) #1240

name: "Android App Tests"
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
android-unit-tests:
name: "Android App Unit Tests"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install JDK 21"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"
cache: "gradle"
- name: "Run Unit Tests"
run: ./gradlew testDebugUnitTest
- name: "Archive App Unit Tests Report"
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: "app-unit-tests-results"
path: ./**/build/reports/**
overwrite: true
android-lint:
name: "Android App Lint Checks"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install JDK 21"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"
cache: "gradle"
- name: "Run Lint Checks"
run: ./gradlew lint
- name: "Archive App Lint Test Results"
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: "app-lint-results"
path: ./**/build/reports/**
overwrite: true
android-test-coverage:
name: "Android common-sdk Test Coverage"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install JDK 21"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"
cache: "gradle"
- name: "Update packages"
run: sudo apt-get update
- name: "Install xmlstarlet"
run: sudo apt-get install xmlstarlet
- name: "Generate Report and Validate Coverage"
run: ./common-sdk/test-coverage/testCoverage.sh
- name: "Archive Test Coverage Results"
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: "test-coverage-result"
path: ./common-sdk/build/reports/kover/**
overwrite: true
android-bundle-publish-test:
name: "Android App Bundle Publish Test"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install JDK 21"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"
cache: "gradle"
- name: "Run App Bundle Publish Test"
run: ./gradlew packageProdReleaseBundle
android-compose:
name: "Compose Android App Checks"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install JDK 21"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"
cache: "gradle"
- name: "Run Compose Android App Checks"
run: ./gradlew composeTestApp:packageReleaseBundle
- name: "Archive Compose Android App Check Results"
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: "compose-android-app-results"
path: ./**/build/reports/**
overwrite: true
ios-compose:
name: "Compose iOS App Checks"
runs-on: macos-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install JDK 21"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"
cache: "gradle"
- name: "Run Compose iOS App Checks"
run: ./gradlew composeTestApp:compileKotlinIosSimulatorArm64
- name: "Archive Compose iOS App Check Results"
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: "compose-ios-app-results"
path: ./**/build/reports/**
overwrite: true