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 26ad8a8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
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
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 26ad8a8

Please sign in to comment.