Use GitHub Actions

Closes gh-599
This commit is contained in:
Josh Cummings
2024-02-01 12:09:31 -07:00
parent d2d00ec3ee
commit 01609eda79
2 changed files with 84 additions and 0 deletions

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

@@ -0,0 +1,28 @@
name: PR Build
on: pull_request
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: github.repository == 'spring-projects/spring-ldap'
strategy:
matrix:
jdk: [17]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
cache: 'gradle'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
- name: Build with Gradle
run: ./gradlew clean build --no-daemon --stacktrace