-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3148 from HannesWell/adjust-workflow-for-test-pub…
…lication [Build] Always collect test-results and don't fail on test-failures
- Loading branch information
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,11 +50,17 @@ jobs: | |
- name: Build and test | ||
uses: coactions/[email protected] | ||
with: | ||
run: ./mvnw clean verify -B -fae "-Dmaven.home=${{ env.MAVEN_WRAPPER_HOME }}" -PuseJenkinsSnapshots ${{ matrix.additional-maven-args }} -f org.eclipse.xtext.full.releng | ||
run: > | ||
./mvnw "-Dmaven.home=${{ env.MAVEN_WRAPPER_HOME }}" | ||
clean verify | ||
-f org.eclipse.xtext.full.releng | ||
-B -fae -PuseJenkinsSnapshots | ||
-Dmaven.test.failure.ignore=true | ||
${{ matrix.additional-maven-args }} | ||
- name: Archive Test Results | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ failure() || cancelled() }} | ||
if: always() | ||
with: | ||
name: test-results-${{ runner.os }}-${{ matrix.java }} | ||
path: '**/*.tests/target/surefire-reports' | ||
|
@@ -89,11 +95,17 @@ jobs: | |
run: echo "MAVEN_WRAPPER_HOME=$(./mvnw --version | grep "Maven home:" | cut -c 13-)" >> "$GITHUB_ENV" | ||
|
||
- name: Build Maven artifacts | ||
run: ./mvnw clean verify -B -fae "-Dmaven.home=${{ env.MAVEN_WRAPPER_HOME }}" -PuseJenkinsSnapshots -Pstrict-jdk-21 -f org.eclipse.xtext.maven.releng | ||
run: > | ||
./mvnw "-Dmaven.home=${{ env.MAVEN_WRAPPER_HOME }}" | ||
clean verify | ||
-f org.eclipse.xtext.maven.releng | ||
-B -fae -PuseJenkinsSnapshots | ||
-Dmaven.test.failure.ignore=true | ||
-Pstrict-jdk-21 | ||
- name: Archive Test Results | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ failure() || cancelled() }} | ||
if: always() | ||
with: | ||
name: build-maven-artifacts-test-results-${{ runner.os }} | ||
path: '**/target/surefire-reports' | ||
|