Add CI build on several Spring Framework generations

This commit adds a GHA workflow that builds the project against a list
of configurable Spring Framework versions. The build action has been
updated to accept an additional input that tunes the Spring Framework
version the build is using

As a result, the default Spring Framework version of the project is now
configured in gradle.properties.

Closes gh-1810
This commit is contained in:
Stéphane Nicoll
2024-10-10 14:04:59 +02:00
parent bedb9493d1
commit 4022e4a548
4 changed files with 51 additions and 2 deletions

View File

@@ -24,6 +24,9 @@ inputs:
description: 'Whether to publish artifacts ready for deployment to Artifactory'
required: false
default: 'false'
spring-framework-version:
description: 'Spring Framework version to use'
required: false
outputs:
build-scan-url:
description: 'URL, if any, of the build scan produced by the build'
@@ -46,7 +49,7 @@ runs:
id: build
if: ${{ inputs.publish == 'false' }}
shell: bash
run: ./gradlew check
run: ./gradlew check ${{ inputs.spring-framework-version != '' && format('-PspringFrameworkVersion={0}', inputs.spring-framework-version) || '' }}
- name: Publish
id: publish
if: ${{ inputs.publish == 'true' }}