-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (41 loc) · 1.35 KB
/
build-pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build Pull Request
on:
workflow_call:
inputs:
java-version:
description: Version of the JDK to use to run the Gradle command.
required: false
default: '17'
type: string
distribution:
description: Distribution of the JDK to use to run the Gradle command.
required: false
default: 'temurin'
type: string
secrets:
GRADLE_ENTERPRISE_CACHE_USER:
required: false
GRADLE_ENTERPRISE_CACHE_PASSWORD:
required: false
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY:
required: false
DEVELOCITY_ACCESS_KEY:
required: false
env:
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ inputs.java-version }}
uses: spring-io/spring-gradle-build-action@v2
with:
java-version: ${{ inputs.java-version }}
distribution: ${{ inputs.distribution }}
- name: Build with Gradle
run: ./gradlew clean build --continue