Skip to content

Commit

Permalink
Build pull request on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed May 8, 2020
1 parent 100291b commit 17bc364
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/android-emulator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Android Emulator test

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build
- name: Android Emulator test
uses: ReactiveCircus/[email protected]
with:
api-level: 28
disable-animations: true
script: ./gradlew cAT
- uses: actions/upload-artifact@v1
if: failure()
with:
name: Espresso-test-report
path: sample/build/reports/androidTests/connected/
10 changes: 10 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Validate Gradle Wrapper"
on: [push]

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
3 changes: 2 additions & 1 deletion anychart/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"

multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
Expand All @@ -28,6 +28,7 @@ dependencies {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
testImplementation 'junit:junit:4.12'
}

Expand Down
1 change: 1 addition & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(":anychart")
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:recyclerview-v7:28.0.0'
Expand Down

0 comments on commit 17bc364

Please sign in to comment.