2020-06-11 14:07:34 -04:00
|
|
|
name: PR Build
|
|
|
|
|
2020-06-17 15:16:10 -04:00
|
|
|
on: pull_request
|
2020-06-11 14:07:34 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
2020-09-02 13:15:19 -04:00
|
|
|
if: github.repository == 'spring-projects/spring-security'
|
2020-06-11 14:07:34 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-02-05 17:21:07 -05:00
|
|
|
java-version: '11'
|
2020-06-11 14:07:34 -04:00
|
|
|
- name: Cache Gradle packages
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.gradle/caches
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
|
|
- name: Build with Gradle
|
2020-09-30 10:20:12 -04:00
|
|
|
run: ./gradlew clean build --continue --scan
|