This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a88a40c8d Fix CI cache for ITs (#1934)
8a88a40c8d is described below

commit 8a88a40c8d6bc0d15ec7ce3d981ff5c5d1d659fc
Author: Guillaume Nodet <gno...@gmail.com>
AuthorDate: Fri Nov 22 11:28:24 2024 +0100

    Fix CI cache for ITs (#1934)
---
 .github/workflows/maven.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 6d05d23547..91929cab73 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -193,6 +193,13 @@ jobs:
             maven-${{ runner.os }}-its
             maven-${{ runner.os }}-
 
+      # we use two steps so that we can cache artifacts downloaded from Maven 
Central repository
+      # without installing any local artifacts to not pollute the cache
+      - name: Build maven and ITs
+        shell: bash
+        run: mvn package -DskipTests -e -B -V -Prun-its 
-Dmaven.repo.local=$HOME/.m2/repository/cached
+
+      # Now run tests and ITs using a separate local repo (using the previous 
filled repo as tail)
       - name: Run integration tests
         shell: bash
         run: mvn install -e -B -V -Prun-its,embedded 
-Dmaven.repo.local=$HOME/.m2/repository/local 
-Dmaven.repo.local.tail=$HOME/.m2/repository/cached

Reply via email to