Skip to content

Commit 26ad8a8

Browse files
committed
Build pull request on CI
1 parent 100291b commit 26ad8a8

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
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

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)