@@ -41,46 +41,23 @@ jobs:
4141 java-version : ${{ matrix.java-version }}
4242 test-args : --refresh-dependencies -PforceMavenRepositories=snapshot -PisOverrideVersionCatalog -PtestToolchain=${{ matrix.toolchain }} -PspringFrameworkVersion=7.+ -PreactorVersion=2025.+ -PspringDataVersion=2025.+ --stacktrace
4343 secrets : inherit
44- check-samples :
45- name : Check Samples
46- runs-on : ubuntu-latest
47- if : ${{ github.repository_owner == 'spring-projects' }}
48- steps :
49- - uses : actions/checkout@v4
50- - name : Set up gradle
51- uses : spring-io/spring-gradle-build-action@v2
52- with :
53- java-version : 17
54- distribution : temurin
55- - name : Check samples project
56- env :
57- LOCAL_REPOSITORY_PATH : ${{ github.workspace }}/build/publications/repos
58- SAMPLES_DIR : ../spring-security-samples
59- run : |
60- # Extract version from gradle.properties
61- version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
62- # Extract samplesBranch from gradle.properties
63- samples_branch=$(cat gradle.properties | grep "samplesBranch=" | awk -F'=' '{print $2}')
64- ./gradlew publishMavenJavaPublicationToLocalRepository
65- ./gradlew cloneRepository -PrepositoryName="spring-projects/spring-security-samples" -Pref="$samples_branch" -PcloneOutputDirectory="$SAMPLES_DIR"
66- ./gradlew --refresh-dependencies --project-dir "$SAMPLES_DIR" --init-script spring-security-ci.gradle -PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" -PspringSecurityVersion="$version" test integrationTest
6744 deploy-artifacts :
6845 name : Deploy Artifacts
69- needs : [ build, test, check-samples ]
46+ needs : [ build, test]
7047 uses : spring-io/spring-security-release-tools/.github/workflows/deploy-artifacts.yml@v1
7148 with :
7249 should-deploy-artifacts : ${{ needs.build.outputs.should-deploy-artifacts }}
7350 secrets : inherit
7451 deploy-docs :
7552 name : Deploy Docs
76- needs : [ build, test, check-samples ]
53+ needs : [ build, test ]
7754 uses : spring-io/spring-security-release-tools/.github/workflows/deploy-docs.yml@v1
7855 with :
7956 should-deploy-docs : ${{ needs.build.outputs.should-deploy-artifacts }}
8057 secrets : inherit
8158 deploy-schema :
8259 name : Deploy Schema
83- needs : [ build, test, check-samples ]
60+ needs : [ build, test ]
8461 uses : spring-io/spring-security-release-tools/.github/workflows/deploy-schema.yml@v1
8562 with :
8663 should-deploy-schema : ${{ needs.build.outputs.should-deploy-artifacts }}
0 commit comments