-
Notifications
You must be signed in to change notification settings - Fork 10
61 lines (59 loc) · 1.71 KB
/
test.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Test
on:
push:
branches: [ develop, v7 ]
paths:
- '!README.md'
- '!release_note.txt'
# - '!samples/nativemessage/*'
pull_request:
branches: [ develop, v7 ]
# paths:
# - '!README.md'
# - '!samples/nativemessage/*'
jobs:
unit-test-cmplib:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: creating local.properties # this file is normally added to .gitignore
run: touch local.properties
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Build test artifact
run: ./gradlew cmplibrary:build
- name: Unit Tests cmplibrary
run: ./gradlew cmplibrary:test
integration-tests-cmplib:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: creating local.properties # this file is normally added to .gitignore
run: touch local.properties
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Integration cmplibrary UI tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 27
script: ./gradlew cmplibrary:connectedAndroidTest