Skip to content

Commit 17bc364

Browse files
committed
Build pull request on CI
1 parent 100291b commit 17bc364

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Android Emulator test
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
build:
9+
runs-on: macOS-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: set up JDK 1.8
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8
16+
- name: Build with Gradle
17+
run: ./gradlew build
18+
- name: Android Emulator test
19+
uses: ReactiveCircus/[email protected]
20+
with:
21+
api-level: 28
22+
disable-animations: true
23+
script: ./gradlew cAT
24+
- uses: actions/upload-artifact@v1
25+
if: failure()
26+
with:
27+
name: Espresso-test-report
28+
path: sample/build/reports/androidTests/connected/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Validate Gradle Wrapper"
2+
on: [push]
3+
4+
jobs:
5+
validation:
6+
name: "Validation"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: gradle/wrapper-validation-action@v1

anychart/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
targetSdkVersion 28
1111
versionCode 1
1212
versionName "1.0"
13-
13+
multiDexEnabled true
1414
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1515

1616
}
@@ -28,6 +28,7 @@ dependencies {
2828
exclude group: 'com.android.support', module: 'support-annotations'
2929
})
3030
implementation 'com.android.support:appcompat-v7:28.0.0'
31+
implementation 'com.android.support:multidex:1.0.3'
3132
testImplementation 'junit:junit:4.12'
3233
}
3334

sample/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ android {
3333
dependencies {
3434
implementation fileTree(dir: 'libs', include: ['*.jar'])
3535
implementation project(":anychart")
36+
implementation 'com.android.support:multidex:1.0.3'
3637
implementation 'com.android.support:appcompat-v7:28.0.0'
3738
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
3839
implementation 'com.android.support:recyclerview-v7:28.0.0'

0 commit comments

Comments
 (0)