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:
5
.github/actions/build/action.yml
vendored
5
.github/actions/build/action.yml
vendored
@@ -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' }}
|
||||
|
||||
Reference in New Issue
Block a user