Loading .github/workflows/integ-test-cache-cleanup.yml +2 −2 Changes for .github/workflows/integ-test-cache-cleanup.yml: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ jobs: cache-read-only: false # For testing, allow writing cache entries on non-default branches - name: Build with 3.1 working-directory: test/jest/resources/cache-cleanup run: gradle --no-daemon --build-cache -Dcommons-math3.version=3.1 build run: gradle --no-daemon --build-cache -Dcommons_math3_version=3.1 build # Second build will use the cache from the first build, but cleanup should remove unused artifacts assemble-build: Loading @@ -55,7 +55,7 @@ jobs: gradle-home-cache-cleanup: true - name: Build with 3.1.1 working-directory: test/jest/resources/cache-cleanup run: gradle --no-daemon --build-cache -Dcommons-math3.version=3.1.1 build run: gradle --no-daemon --build-cache -Dcommons_math3_version=3.1.1 build check-clean-cache: needs: assemble-build Loading test/jest/cache-cleanup.test.ts +4 −4 Changes for test/jest/cache-cleanup.test.ts: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -63,17 +63,17 @@ test('will cleanup unused gradle versions', async () => { }) async function runGradleBuild(projectRoot: string, args: string, version: string = '3.1'): Promise<void> { const status31 = await exec.exec(`gradle -g HOME --no-daemon --build-cache -Dcommons-math3.version=${version} ${args}`, [], { const status31 = await exec.exec(`gradle -g HOME --no-daemon --build-cache -Dcommons_math3_version=${version} ${args}`, [], { cwd: projectRoot }) console.log(`Gradle User Home initialized with commons-math3.version=${version} ${args}`) console.log(`Gradle User Home initialized with commons_math3_version=${version} ${args}`) } async function runGradleWrapperBuild(projectRoot: string, args: string, version: string = '3.1'): Promise<void> { const status31 = await exec.exec(`./gradlew -g HOME --no-daemon --build-cache -Dcommons-math3.version=${version} ${args}`, [], { const status31 = await exec.exec(`./gradlew -g HOME --no-daemon --build-cache -Dcommons_math3_version=${version} ${args}`, [], { cwd: projectRoot }) console.log(`Gradle User Home initialized with commons-math3.version=${version} ${args}`) console.log(`Gradle User Home initialized with commons_math3_version=${version} ${args}`) } function prepareTestProject(): string { Loading test/jest/resources/cache-cleanup/build.gradle +1 −1 Changes for test/jest/resources/cache-cleanup/build.gradle: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -7,5 +7,5 @@ repositories { } dependencies { api "org.apache.commons:commons-math3:${System.properties['commons-math3.version']}" api "org.apache.commons:commons-math3:${System.properties['commons_math3_version']}" } Loading
.github/workflows/integ-test-cache-cleanup.yml +2 −2 Changes for .github/workflows/integ-test-cache-cleanup.yml: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ jobs: cache-read-only: false # For testing, allow writing cache entries on non-default branches - name: Build with 3.1 working-directory: test/jest/resources/cache-cleanup run: gradle --no-daemon --build-cache -Dcommons-math3.version=3.1 build run: gradle --no-daemon --build-cache -Dcommons_math3_version=3.1 build # Second build will use the cache from the first build, but cleanup should remove unused artifacts assemble-build: Loading @@ -55,7 +55,7 @@ jobs: gradle-home-cache-cleanup: true - name: Build with 3.1.1 working-directory: test/jest/resources/cache-cleanup run: gradle --no-daemon --build-cache -Dcommons-math3.version=3.1.1 build run: gradle --no-daemon --build-cache -Dcommons_math3_version=3.1.1 build check-clean-cache: needs: assemble-build Loading
test/jest/cache-cleanup.test.ts +4 −4 Changes for test/jest/cache-cleanup.test.ts: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -63,17 +63,17 @@ test('will cleanup unused gradle versions', async () => { }) async function runGradleBuild(projectRoot: string, args: string, version: string = '3.1'): Promise<void> { const status31 = await exec.exec(`gradle -g HOME --no-daemon --build-cache -Dcommons-math3.version=${version} ${args}`, [], { const status31 = await exec.exec(`gradle -g HOME --no-daemon --build-cache -Dcommons_math3_version=${version} ${args}`, [], { cwd: projectRoot }) console.log(`Gradle User Home initialized with commons-math3.version=${version} ${args}`) console.log(`Gradle User Home initialized with commons_math3_version=${version} ${args}`) } async function runGradleWrapperBuild(projectRoot: string, args: string, version: string = '3.1'): Promise<void> { const status31 = await exec.exec(`./gradlew -g HOME --no-daemon --build-cache -Dcommons-math3.version=${version} ${args}`, [], { const status31 = await exec.exec(`./gradlew -g HOME --no-daemon --build-cache -Dcommons_math3_version=${version} ${args}`, [], { cwd: projectRoot }) console.log(`Gradle User Home initialized with commons-math3.version=${version} ${args}`) console.log(`Gradle User Home initialized with commons_math3_version=${version} ${args}`) } function prepareTestProject(): string { Loading
test/jest/resources/cache-cleanup/build.gradle +1 −1 Changes for test/jest/resources/cache-cleanup/build.gradle: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -7,5 +7,5 @@ repositories { } dependencies { api "org.apache.commons:commons-math3:${System.properties['commons-math3.version']}" api "org.apache.commons:commons-math3:${System.properties['commons_math3_version']}" }