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
|
|
|
|
2021-05-03 16:12:12 -04:00
|
|
|
env:
|
|
|
|
RUN_JOBS: ${{ github.repository == 'spring-projects/spring-security' }}
|
|
|
|
|
2020-06-11 14:07:34 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-05-03 16:12:12 -04:00
|
|
|
- if: env.RUN_JOBS == 'true'
|
|
|
|
uses: actions/checkout@v2
|
2020-06-11 14:07:34 -04:00
|
|
|
- name: Set up JDK
|
2021-05-03 16:12:12 -04:00
|
|
|
if: env.RUN_JOBS == 'true'
|
2020-06-11 14:07:34 -04:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-10-07 14:20:10 -04:00
|
|
|
java-version: '17'
|
2022-04-14 15:31:16 -04:00
|
|
|
- name: Setup Gradle
|
2021-05-03 16:12:12 -04:00
|
|
|
if: env.RUN_JOBS == 'true'
|
2022-04-14 15:31:16 -04:00
|
|
|
uses: gradle/gradle-build-action@v2
|
2020-06-11 14:07:34 -04:00
|
|
|
with:
|
2022-04-14 15:31:16 -04:00
|
|
|
cache-read-only: true
|
|
|
|
env:
|
|
|
|
GRADLE_USER_HOME: ~/.gradle
|
2020-06-11 14:07:34 -04:00
|
|
|
- name: Build with Gradle
|
2021-05-03 16:12:12 -04:00
|
|
|
if: env.RUN_JOBS == 'true'
|
2020-09-30 10:20:12 -04:00
|
|
|
run: ./gradlew clean build --continue --scan
|