Skip to content

Commit 746f2aa

Browse files
committed
Add workflow for building pull requests
1 parent c88a768 commit 746f2aa

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build Pull Request
2+
on: pull_request
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
build:
9+
name: Build pull request
10+
runs-on: ubuntu-latest
11+
if: ${{ github.repository == 'spring-projects/spring-boot' }}
12+
steps:
13+
- name: Set up JDK 8
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: '8'
17+
distribution: 'liberica'
18+
19+
- name: Set up Gradle
20+
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
21+
22+
- name: Build
23+
env:
24+
CI: 'true'
25+
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
26+
run: ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 --continue build

0 commit comments

Comments
 (0)