places #689
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Gradle Wrapper Validation | |
uses: gradle/[email protected] | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Build with Gradle (Unit tests) | |
run: ./gradlew testRelease | |
- name: Build with Gradle (lintVitalRelease) | |
run: ./gradlew lintVitalRelease | |
- name: Upload artifacts (debug apk) | |
uses: actions/[email protected] | |
with: | |
name: app | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Upload artifacts (lint results) | |
uses: actions/[email protected] | |
with: | |
name: lint-results.html | |
path: app/build/reports/lint-results.html |