-
Notifications
You must be signed in to change notification settings - Fork 44
37 lines (36 loc) · 1.38 KB
/
android-bridge-tests.yml
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
name: "Android Bridge Tests"
on: push
jobs:
test:
timeout-minutes: 15
runs-on: macos-11
steps:
- name: "Checkout internal"
uses: actions/checkout@v3
- name: "Clone Android Repo"
uses: actions/checkout@v3
with:
repository: mParticle/mparticle-android-sdk
ref: development
path: mparticle-android-sdk
- name: "Install JDK 11"
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "11"
- name: "Build Files"
run: |
npm ci
npm run build:iife
- name: "Run Instrumented Tests"
uses: reactivecircus/android-emulator-runner@v2.27.0
with:
working-directory: mparticle-android-sdk
api-level: 29
script: ./gradlew :android-core:cAT -Pandroid.testInstrumentationRunnerArguments.class=com.mparticle.internal.MParticleJSInterfaceITest -Pjs-sdk-file=../dist/mparticle.js
- name: "Archive Test Results"
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: test-results
path: mparticle-android-sdk/android-core/build/reports/androidTests/connected/**