Add GitHub actions.

See spring-projects/spring-data-build#2764
This commit is contained in:
Mark Paluch 2026-01-23 09:04:34 +01:00
parent 0c1f5369df
commit 672315475d
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
2 changed files with 53 additions and 0 deletions

26
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: CI Build
on:
push:
branches: [ main, 6.0.x, 5.5.x, 'issue/**' ]
permissions: read-all
jobs:
build-java:
strategy:
matrix:
java-version: [ base, main ]
name: Build project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Java and Maven
uses: spring-projects/spring-data-release/actions/setup-maven@main
with:
java-version: ${{ matrix.java-version }}
develocity-access-key: '${{ secrets.DEVELOCITY_ACCESS_KEY }}'
- name: Build
uses: spring-projects/spring-data-release/actions/maven-build@main
env:
TESTCONTAINERS_REUSE_ENABLE: true

27
.github/workflows/snapshots.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Snapshots
on:
push:
branches: [ main, 6.0.x, 5.5.x, 'issue/**' ]
permissions: read-all
jobs:
build-snapshots:
name: Build and deploy snapshots
if: ${{ github.repository_owner == 'spring-projects' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Java and Maven
uses: spring-projects/spring-data-release/actions/setup-maven@main
with:
develocity-access-key: '${{ secrets.DEVELOCITY_ACCESS_KEY }}'
- name: Deploy to Artifactory
uses: spring-projects/spring-data-release/actions/maven-artifactory-deploy@main
env:
TESTCONTAINERS_REUSE_ENABLE: true
with:
build-name: 'spring-data-elasticsearch'
username: '${{ secrets.ARTIFACTORY_USERNAME }}'
password: '${{ secrets.ARTIFACTORY_PASSWORD }}'