Set up Github Actions pipeline for PRs

This commit is contained in:
Ellie Bahadori
2020-07-23 01:01:58 -07:00
committed by GitHub
parent 0f2a331ea3
commit b219806d8e
3 changed files with 28 additions and 17 deletions

27
.github/workflows/pr-build-workflow.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: PR Build
on: pull_request
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [8, 11]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
- name: Build with Gradle
run: ./gradlew clean build --no-daemon --stacktrace
# placeholder comment