diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 5d7f6094511..2ef75b28942 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -18,7 +18,15 @@ jobs: distribution: 'liberica' cache: 'maven' - - name: Run the Maven verify phase + - name: Cache Maven/Gradle repositories for tests + uses: actions/cache@v4 + with: + path: | + /tmp/maven-version-resolver-cache + /tmp/homes + key: ${{ runner.os }}-test-repositories + + - name: Build with Maven run: ./mvnw --batch-mode --update-snapshots verify - name: Set up Azure diff --git a/start-site/src/test/java/io/spring/start/site/ProjectGenerationIntegrationTests.java b/start-site/src/test/java/io/spring/start/site/ProjectGenerationIntegrationTests.java index b8fa297531f..3d85246c9a7 100644 --- a/start-site/src/test/java/io/spring/start/site/ProjectGenerationIntegrationTests.java +++ b/start-site/src/test/java/io/spring/start/site/ProjectGenerationIntegrationTests.java @@ -216,6 +216,7 @@ void release(Path home) { private Path createTempDirectory() { try { Path path = Path.of(System.getProperty("java.io.tmpdir")) + .resolve("homes") .resolve(this.prefix + "-" + this.counter.getAndIncrement()); Files.createDirectories(path); return path;