|
21 | 21 | strategy: |
22 | 22 | fail-fast: false |
23 | 23 | matrix: |
24 | | - springboot-version: [ '4.0.0', '4.0.5', '4.1.0' ] |
25 | | - |
26 | | - name: Spring Boot ${{ matrix.springboot-version }} |
| 24 | + include: |
| 25 | + - springboot-version: '4.0.0' |
| 26 | + kotlin-version: '2.2.0' |
| 27 | + - springboot-version: '4.0.5' |
| 28 | + kotlin-version: '2.2.21' |
| 29 | + - springboot-version: '4.1.0' |
| 30 | + kotlin-version: '2.3.21' |
| 31 | + |
| 32 | + name: Spring Boot ${{ matrix.springboot-version }} / Kotlin ${{ matrix.kotlin-version }} |
27 | 33 | env: |
28 | 34 | SENTRY_URL: http://127.0.0.1:8000 |
29 | 35 | GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} |
@@ -62,11 +68,16 @@ jobs: |
62 | 68 | with: |
63 | 69 | cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} |
64 | 70 |
|
65 | | - - name: Update Spring Boot 4.x version |
| 71 | + - name: Update Spring Boot 4.x and Kotlin versions |
66 | 72 | run: | |
67 | 73 | springboot_version="${{ matrix.springboot-version }}" |
| 74 | + kotlin_version="${{ matrix.kotlin-version }}" |
| 75 | +
|
68 | 76 | perl -0pi -e 'BEGIN { $v = shift } s/^springboot4[[:space:]]*=[[:space:]]*"\K[^"]*/$v/m or die "::error::springboot4 version entry not found in gradle/libs.versions.toml\n"' "$springboot_version" gradle/libs.versions.toml |
| 77 | + perl -0pi -e 'BEGIN { $v = shift } s/^kotlin[[:space:]]*=[[:space:]]*"\K[^"]*/$v/m or die "::error::kotlin version entry not found in gradle/libs.versions.toml\n"' "$kotlin_version" gradle/libs.versions.toml |
| 78 | +
|
69 | 79 | echo "Updated Spring Boot 4.x version to $springboot_version" |
| 80 | + echo "Updated Kotlin version to $kotlin_version" |
70 | 81 |
|
71 | 82 | - name: Build sample artifacts |
72 | 83 | run: | |
|
0 commit comments