-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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-1802
- Loading branch information
Showing
4 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
jobs: | ||
ci: | ||
name: 'Spring Framework ${{ matrix.spring.generation}} | Java ${{ matrix.java.version}}' | ||
if: ${{ github.repository == 'spring-projects/spring-webflow' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: | ||
- version: 17 | ||
toolchain: false | ||
spring: | ||
- generation: 6.1.x | ||
version: 6.0.13 | ||
- generation: 6.2.x | ||
version: 6.2.0-SNAPSHOT | ||
steps: | ||
- name: Check Out Code | ||
uses: actions/checkout@v4 | ||
- name: Build | ||
id: build | ||
uses: ./.github/actions/build | ||
with: | ||
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | ||
java-early-access: ${{ matrix.java.early-access || 'false' }} | ||
java-distribution: ${{ matrix.java.distribution }} | ||
java-toolchain: ${{ matrix.java.toolchain }} | ||
java-version: ${{ matrix.java.version }} | ||
spring-framework-version: ${{ matrix.spring.version }} | ||
- name: Send Notification | ||
if: always() | ||
uses: ./.github/actions/send-notification | ||
with: | ||
build-scan-url: ${{ steps.build.outputs.build-scan-url }} | ||
run-name: ${{ format('{0} | Spring Framework {1} | Java {2}', github.ref_name, matrix.spring.version, matrix.java.version) }} | ||
status: ${{ job.status }} | ||
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
version=3.0.1-SNAPSHOT | ||
org.gradle.caching=true | ||
|
||
springFrameworkVersion=6.0.7 | ||
springFramework61xVersion=6.1.13 | ||
springFramework62xVersion=6.2.0-SNAPSHOT |