-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.16 KB
/
android.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
name: Android CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
name: Build and run tests
# runs-on: ubuntu-latest
runs-on: macos-latest # Switched to macOS
steps:
- name: Checkout current repository in ubuntu's file system
uses: actions/checkout@v1
- name: Setup JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Print contents in current directory
run: ls -la
- name: Run unit tests
run: ./gradlew testDebugUnitTest
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
avd-name: test
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedCheck
- name: Upload Reports
uses: actions/upload-artifact@v1
with:
name: reports
path: currency-formatter/build/reports
- name: Codecov
uses: codecov/[email protected]