forked from qiniu/android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 950 Bytes
/
ci-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
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
name: Run Test Cases
jobs:
test-on-mac:
runs-on: macos-12
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Setup Java Version
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
cache: gradle
- name: Run Cases
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 22
profile: Nexus 6
arch: x86_64
script: |
./gradlew connectedCheck
./gradlew build
./gradlew :library:createDebugAndroidTestCoverageReport --info --stacktrace
./gradlew connectedAndroidTest --info --stacktrace
- name: Upload coverage.txt
run: |
bash <(curl -s https://codecov.io/bash)