Skip to content

Commit 4be4a76

Browse files
committed
Add Snapshot Tests to CI
Closes gh-933
1 parent c668cfe commit 4be4a76

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 11 additions & 0 deletions
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=5.3.+ -PspringDataVersion=2021.1.+ --stacktrace
2435
deploy-artifacts:
2536
name: Deploy Artifacts
2637
needs: [ build ]

dependencies/build.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ repositories {
1414
ext.queryDslVersion = '4.0.9'
1515

1616
dependencies {
17-
api platform("org.springframework:spring-framework-bom:5.3.21")
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:5.3.21")
24+
api platform("org.springframework.data:spring-data-bom:2021.1.4")
25+
}
1826
api platform("org.junit:junit-bom:5.8.2")
19-
api platform("org.springframework.data:spring-data-bom:2021.1.4")
2027
api platform("com.fasterxml.jackson:jackson-bom:2.13.3")
2128
constraints {
2229
api "com.querydsl:querydsl-core:$queryDslVersion"

0 commit comments

Comments
 (0)