refactor: update forwarder module to TS #4186
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: "Android Bridge Tests" | |
| on: push | |
| jobs: | |
| test: | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout internal" | |
| uses: actions/checkout@v6 | |
| - name: "Clone Android Repo" | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: mParticle/mparticle-android-sdk | |
| ref: main | |
| path: mparticle-android-sdk | |
| - name: "Install JDK 17" | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: "zulu" | |
| java-version: "17" | |
| - name: "Build Files" | |
| run: | | |
| npm ci | |
| npm run build:iife | |
| - name: "Run Instrumented Tests" | |
| uses: reactivecircus/android-emulator-runner@v2.35.0 | |
| with: | |
| working-directory: mparticle-android-sdk | |
| api-level: 29 | |
| arch: x86_64 | |
| force-avd-creation: true | |
| script: ./gradlew :android-core:cAT -Pandroid.testInstrumentationRunnerArguments.class=com.mparticle.internal.MParticleJSInterfaceITest -Pjs-sdk-file=${{ github.workspace }}/dist/mparticle.js | |
| - name: "Archive Test Results" | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: test-results | |
| path: mparticle-android-sdk/android-core/build/reports/androidTests/connected/** |