Skip to content

Commit 3b080f6

Browse files
authored
Merge branch 'main' into fix#1857
2 parents 159e26a + ecae493 commit 3b080f6

File tree

1,099 files changed

+48536
-29428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,099 files changed

+48536
-29428
lines changed

.github/dco.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require:
2+
members: false

.github/workflows/artifactory-staging.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/continuous-integration.yml

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ jobs:
88
build:
99
name: Build branch
1010
runs-on: ubuntu-latest
11+
services:
12+
ollama:
13+
image: ollama/ollama:latest
14+
ports:
15+
- 11434:11434
16+
env:
17+
OLLAMA_WITH_REUSE: true
1118
steps:
1219
- name: Checkout source code
1320
uses: actions/checkout@v4
@@ -41,8 +48,9 @@ jobs:
4148
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
4249
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
4350
OLLAMA_AUTOCONF_TESTS_ENABLED: "true"
51+
OLLAMA_WITH_REUSE: true
4452
run: |
45-
mvn -s settings.xml -Pintegration-tests -Pjavadoc -Dfailsafe.rerunFailingTestsCount=3 \
53+
mvn -s settings.xml -Pci-fast-integration-tests -Pjavadoc -Dfailsafe.rerunFailingTestsCount=3 \
4654
--batch-mode --update-snapshots deploy
4755
4856
- name: Generate Java docs
@@ -76,37 +84,3 @@ jobs:
7684
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST "cd $DOCS_PATH && mkdir -p $PROJECT_VERSION"
7785
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$PROJECT_VERSION
7886
79-
80-
# The docker-compose and testcontainers modules will be compiled and run in a parallel job
81-
container-tests:
82-
name: docker-compose and testcontainers modules
83-
runs-on: ubuntu-latest
84-
steps:
85-
- name: Checkout source code
86-
uses: actions/checkout@v4
87-
88-
- name: Set up JDK 17
89-
uses: actions/setup-java@v4
90-
with:
91-
java-version: '17'
92-
distribution: 'temurin'
93-
cache: 'maven'
94-
95-
- name: Configure Testcontainers
96-
run: |
97-
echo "testcontainers.reuse.enable=true" > $HOME/.testcontainers.properties
98-
99-
- name: Build Dependencies
100-
run: |
101-
mvn -s settings.xml clean install \
102-
-DskipTests \
103-
-pl spring-ai-spring-boot-docker-compose,spring-ai-spring-boot-testcontainers \
104-
-am --batch-mode
105-
106-
- name: Run docker-compost and testcontainers Integration Tests
107-
run: |
108-
mvn -s settings.xml -Pintegration-tests verify \
109-
-Dskip.docker-compose=false \
110-
-Dskip.testcontainers=false \
111-
-pl spring-ai-spring-boot-docker-compose,spring-ai-spring-boot-testcontainers \
112-
--batch-mode

.github/workflows/maven-central-release.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/maven-central-stage.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release to Maven Central
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
name: Release project
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
13+
- name: Check out sources
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'temurin'
20+
java-version: 17
21+
cache: 'maven'
22+
23+
- name: Install GPG key
24+
run: |
25+
echo "${{ secrets.GPG_PRIVATE_KEY }}" > gpg.asc
26+
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --passphrase-fd 0 --import gpg.asc
27+
28+
- name: Release to Sonatype OSSRH
29+
env:
30+
SONATYPE_USER: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
31+
SONATYPE_PASSWORD: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
32+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
33+
run: |
34+
./mvnw -B clean install -DskipTests
35+
./mvnw -B clean deploy -Psonatype -s settings.xml

.github/workflows/source-code-format-check.yml renamed to .github/workflows/pr-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Source Code Format
1+
name: PR Check
22

33
on:
44
pull_request:
@@ -20,6 +20,6 @@ jobs:
2020
distribution: 'temurin'
2121
cache: 'maven'
2222

23-
- name: Source code formatting check
23+
- name: Run tests
2424
run: |
25-
./mvnw spring-javaformat:validate
25+
./mvnw test

0 commit comments

Comments
 (0)