Fix CI cache for ITs (#1934)

This commit is contained in:
Guillaume Nodet 2024-11-22 11:28:24 +01:00 committed by GitHub
parent 9bea6ec23b
commit 8a88a40c8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -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