Skip to content

Commit 991d5c8

Browse files
Use properties in the checkSamples job
Issue gh-10344
1 parent 34f280a commit 991d5c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,15 @@ jobs:
9595
mkdir -p ~/.gradle
9696
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
9797
- name: Check samples project
98+
env:
99+
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
100+
SAMPLES_INIT_SCRIPT: ${{ github.workspace }}/build/includeRepo/spring-security-ci.gradle
98101
run: |
99102
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
100103
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
101104
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
102-
./gradlew checkSamples --stacktrace
105+
./gradlew publishMavenJavaPublicationToLocalRepository
106+
./gradlew checkSamples -PsamplesInitScript="$SAMPLES_INIT_SCRIPT" -PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" --stacktrace
103107
check_tangles:
104108
name: Check for Package Tangles
105109
needs: [ prerequisites ]

0 commit comments

Comments
 (0)