[SDK-2491][WIP] Create new test app and GHA for Mobileboost tests #1
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: Run MobileBoost Tests on PR | |
| on: | |
| pull_request: | |
| types: [opened, reopened] | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v2 | |
| - name: Navigate to TestBed Directory | |
| run: cd Branch-SDK-TestBed | |
| - name: Setup java for gradle | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: ${{ env.JAVA_DISTRIBUTION }} | |
| java-version: ${{ env.JAVA_VERSION }} | |
| - name: Build Android App | |
| run: ./gradlew Branch-SDK-TestBed:assembleDebug | |
| - name: Build Android App | |
| run: ./gradlew Liking-Testbeds/DelayedInitTest:assembleDebug | |
| - name: Upload APK to Mobile Boost and Run Tests | |
| run: | | |
| curl -s https://app.mobileboost.io/cli.sh | tr -d '\r' | /bin/bash -s -- "$PWD/Branch-SDK-TestBed/build/outputs/apk/debug/Branch-SDK-TestBed-debug.apk" android | |
| curl -s https://app.mobileboost.io/cli.sh | tr -d '\r' | /bin/bash -s -- "$PWD/Liking-Testbeds/DelayedInitTest/build/outputs/apk/debug/DelayedInitTest-debug.apk" android | |
| env: | |
| API_ORG_KEY: ${{ secrets.MOBILEBOOST_API_ORG_KEY }} | |
| API_KEY: ${{ secrets.MOBILEBOOST_API_ORG_KEY }} | |
| TEST_TAGS: Android | |
| shell: bash |