Skip to content

Instantly share code, notes, and snippets.

@lhoyong
Created March 9, 2020 18:06
Show Gist options
  • Save lhoyong/9fd7df144af98e882316d2f267945f0d to your computer and use it in GitHub Desktop.
Save lhoyong/9fd7df144af98e882316d2f267945f0d to your computer and use it in GitHub Desktop.
android actions pull request build
name: Pull Request
on:
pull_request:
types: [opened, ready_for_review, synchronize]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Debug Build with Gradle
run: ./gradlew assembleDebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment