Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Always collect test-results and don't fail on test-failures #3148

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
path: '**/*.tests/target/surefire-reports'
Expand Down Expand Up @@ -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: test-results-${{ runner.os }}
path: '**/target/surefire-reports'
Expand Down
Loading