Add some vector stores to IT tests to run
This commit is contained in:
45
.github/actions/do-multi-module-test/action.yml
vendored
Normal file
45
.github/actions/do-multi-module-test/action.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: "Setup for SpringAI Multi-Module Tests"
|
||||
description: "Setup For SpringAI Multi-Module Tests"
|
||||
|
||||
inputs:
|
||||
modules:
|
||||
description: "Comma-separated list of modules to test"
|
||||
required: true
|
||||
maven-properties:
|
||||
description: "Maven properties to pass to the build"
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Check environment
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const env = ${{ toJson(env) }}
|
||||
const emptyEnvEntries = Object.entries(env).filter(e => e[1].length === 0)
|
||||
emptyEnvEntries.length > 0 &&
|
||||
core.setFailed('Missing value for environment variable(s): ' + emptyEnvEntries.map(e => e[0]).join(', '));
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: spring-projects/spring-ai
|
||||
ref: refs/heads/main
|
||||
path: spring-ai
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: maven
|
||||
|
||||
- name: Install
|
||||
shell: bash
|
||||
run: cd spring-ai && ./mvnw install -DskipTests
|
||||
|
||||
- name: Run integration tests
|
||||
shell: bash
|
||||
run: cd spring-ai && ./mvnw -pl ${{ inputs.modules }} -Pintegration-tests ${{ inputs.maven-properties }} -Dfailsafe.rerunFailingTestsCount=2 verify
|
||||
Reference in New Issue
Block a user