Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Created android.yml to run Lint for CI #33

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: AndroidCI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
3 changes: 3 additions & 0 deletions blotoutapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
}

allprojects {
Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,16 @@ allprojects {
repositories {
google()
jcenter()

}
}


tasks.register("AndroidCI") { // 1
dependsOn(":blotoutapp:lint") // 2 ==> CUSTOMIZE THIS LINE
group = "custom" // 3
description = "\$./gradlew Android CI # runs on GitHub Action" //3
}

task clean(type: Delete) {
delete rootProject.buildDir
}