From 4a727e2a94e756b5ed68d3863a852dcd4bdcc8a2 Mon Sep 17 00:00:00 2001 From: "Henning P. Schmiedehausen" Date: Sun, 21 Aug 2022 19:03:16 -0700 Subject: [PATCH] run clean before building maven and integration tests Explicitly run clean before (re-)building the maven distribution and integration tests. Currently the tests seem to be a bit unstable for 3.9.x and master; I can reproduce this locally and the errors go away when explicitly cleaning the workspace before building. --- .github/workflows/maven.yml | 4 ++-- .github/workflows/maven_build_itself.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3b82ac148897..d9281fa420b9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -37,7 +37,7 @@ jobs: cache: 'maven' - name: Build with Maven - run: mvn verify -e -B -V -DdistributionFileName=apache-maven + run: mvn clean verify -e -B -V -DdistributionFileName=apache-maven - name: Upload built Maven uses: actions/upload-artifact@v2 @@ -118,4 +118,4 @@ jobs: - 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 clean 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 diff --git a/.github/workflows/maven_build_itself.yml b/.github/workflows/maven_build_itself.yml index c181d23d137a..617864ffdbe0 100644 --- a/.github/workflows/maven_build_itself.yml +++ b/.github/workflows/maven_build_itself.yml @@ -38,7 +38,7 @@ jobs: cache: 'maven' - name: Build with Maven - run: mvn verify -e -B -V -DdistributionFileName=apache-maven + run: mvn clean verify -e -B -V -DdistributionFileName=apache-maven - name: Extract tarball shell: bash