Skip to content

Commit 6f7b1fa

Browse files
committed
Add Snapshot Tests to CI
Closes gh-933
1 parent 64c1eff commit 6f7b1fa

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

Diff for: .github/workflows/continuous-integration-workflow.yml

+11
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ jobs:
2121
java-version: ${{ matrix.jdk }}
2222
distribution: temurin
2323
secrets: inherit
24+
test:
25+
name: Test Against Snapshots
26+
uses: spring-io/spring-security-release-tools/.github/workflows/test.yml@v1
27+
strategy:
28+
matrix:
29+
include:
30+
- java-version: 21-ea
31+
- java-version: 17
32+
with:
33+
java-version: ${{ matrix.java-version }}
34+
test-args: --refresh-dependencies -PforceMavenRepositories=snapshot -PisOverrideVersionCatalog -PtestToolchain=17 -PspringFrameworkVersion=6.2.+ -PspringDataVersion=2024.0.+ --stacktrace
2435
deploy-artifacts:
2536
name: Deploy Artifacts
2637
needs: [ build ]

Diff for: dependencies/build.gradle

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ repositories {
1414
ext.queryDslVersion = '5.0.0'
1515

1616
dependencies {
17-
api platform("org.springframework:spring-framework-bom:6.1.13")
18-
api platform("org.springframework.data:spring-data-bom:2021.2.18")
17+
if (project.hasProperty("isOverrideVersionCatalog")) {
18+
def springFrameworkVersion = project.property("springFrameworkVersion")
19+
def springDataVersion = project.property("springDataVersion")
20+
api platform("org.springframework:spring-framework-bom:$springFrameworkVersion")
21+
api platform("org.springframework.data:spring-data-bom:$springDataVersion")
22+
} else {
23+
api platform("org.springframework:spring-framework-bom:6.1.13")
24+
api platform("org.springframework.data:spring-data-bom:2021.2.18")
25+
}
1926
api platform('com.fasterxml.jackson:jackson-bom:2.15.4')
2027
api platform("org.junit:junit-bom:5.8.2")
2128
constraints {

0 commit comments

Comments
 (0)