-
Notifications
You must be signed in to change notification settings - Fork 1.1k
35 lines (32 loc) · 1.03 KB
/
ci.yml
File metadata and controls
35 lines (32 loc) · 1.03 KB
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
name: CI Build
on:
workflow_dispatch:
push:
# branches: [ main, 5.0.x, 4.5.x, 'issue/**' ]
branches: [ 'issue/actions' ]
permissions: read-all
jobs:
build-java:
strategy:
matrix:
java-version: [ base, main ]
mongo-version: ['latest', '8.2', '8.0', '7.0']
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: Initialize MongoDB Server
uses: ./.github/actions/mongodb/
with:
managed-versions: ${CONFIG_JSON}
mongodb-server-version: '${{ matrix.mongo-version }}'
replica-set: 'rs0'
- name: Build
uses: spring-projects/spring-data-release/actions/maven-build@main
with:
run: ./mvnw -Dsort -B -U -Pci clean dependency:list verify