mirror of https://github.com/apache/maven.git
Execute IT tests with clean local repository
This commit is contained in:
parent
01ba8291cd
commit
20f7c65a52
|
@ -106,15 +106,6 @@ jobs:
|
|||
ref: ${{ env.REPO_BRANCH }}
|
||||
persist-credentials: false
|
||||
|
||||
|
||||
- name: Set up cache for ~/.m2/repository
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: it-m2-repo-${{ matrix.os }}-${{ hashFiles('maven-integration-testing/**/pom.xml') }}
|
||||
restore-keys: |
|
||||
it-m2-repo-${{ matrix.os }}-
|
||||
|
||||
- name: Download built Maven
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
|
@ -126,8 +117,8 @@ jobs:
|
|||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
distribution: 'temurin'
|
||||
cache: 'maven'
|
||||
# cache: 'maven' - don't use cache for integration tests
|
||||
|
||||
- name: Running integration tests
|
||||
shell: bash
|
||||
run: mvn install -e -B -V -Prun-its,embedded -Dmaven.repo.local="$HOME/.m2/repository" -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -f maven-integration-testing/pom.xml
|
||||
run: mvn install -e -B -V -Prun-its,embedded -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -f maven-integration-testing/pom.xml
|
||||
|
|
|
@ -101,7 +101,7 @@ for (String os in runITsOses) {
|
|||
withEnv(["JAVA_HOME=${ tool "$jdkName" }",
|
||||
"PATH+MAVEN=${ tool "$jdkName" }/bin:${tool "$mvnName"}/bin",
|
||||
"MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) {
|
||||
String cmd = "${runITscommand} -DmavenDistro=$WORK_DIR/dists/apache-maven-bin.zip -Dmaven.test.failure.ignore"
|
||||
String cmd = "${runITscommand} -Dmaven.repo.local=$WORK_DIR/it-local-repo -DmavenDistro=$WORK_DIR/dists/apache-maven-bin.zip -Dmaven.test.failure.ignore"
|
||||
|
||||
if (isUnix()) {
|
||||
sh 'df -hT'
|
||||
|
|
Loading…
Reference in New Issue