-
Notifications
You must be signed in to change notification settings - Fork 57
39 lines (38 loc) · 1.47 KB
/
Copy pathandroid-bridge-tests.yml
File metadata and controls
39 lines (38 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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/**