-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.67 KB
/
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
38
39
40
41
42
name: tests
on:
push:
branches:
- develop
- releases/*
pull_request:
jobs:
tests:
name: Tests
runs-on: macos-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Test the app (unit test)
run: ./gradlew clean test
- name: Prepare configuration for integration tests
env:
CL_URL: ${{ secrets.TESTS_CL_URL }}
CL_LGN: ${{ secrets.TESTS_CL_LGN }}
CL_PWD: ${{ secrets.TESTS_CL_PWD }}
CL_AID: ${{ secrets.TESTS_CL_AID }}
APP_KEY: ${{ secrets.TESTS_APP_KEY }}
APP_SECRET: ${{ secrets.TESTS_APP_SECRET }}
MASTER_SERVER_PUBLIC_KEY: ${{ secrets.TESTS_MASTER_SERVER_PUBLIC_KEY }}
ER_URL: ${{ secrets.TESTS_ER_URL }}
OP_URL: ${{ secrets.TESTS_OP_URL }}
IN_URL: ${{ secrets.TESTS_IN_URL }}
run: echo -e tests.sdk.cloudServerUrl="$CL_URL"\\ntests.sdk.cloudServerLogin="$CL_LGN"\\ntests.sdk.cloudServerPassword="$CL_PWD"\\ntests.sdk.cloudApplicationId="$CL_AID"\\ntests.sdk.enrollmentServerUrl="$ER_URL"\\ntests.sdk.operationsServerUrl="$OP_URL"\\ntests.sdk.inboxServerUrl="$IN_URL"\\ntests.sdk.appKey="$APP_KEY"\\ntests.sdk.appSecret="$APP_SECRET"\\ntests.sdk.masterServerPublicKey="$MASTER_SERVER_PUBLIC_KEY" > configs/integration-tests.properties
- name: Test the app (integration tests)
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew clean connectedAndroidTest --info