Skip to content

Commit

Permalink
Update GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
jabolina committed Jan 14, 2024
1 parent 19cccc7 commit 83e645c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ jobs:
distribution: temurin
cache: maven
- name: Build with Maven
id: test_runner
run: mvn -B package --file pom.xml -Dgroups=functional
continue-on-error: true

- name: Generate and upload test reports
- name: Generate test reports
# Only generate and upload reports if tests failed.
if: failure()
run: mvn -B surefire-report:report-only

# Only run upload if tests failed.
- name: Generate and upload test reports
if: steps.test_runner.outputs.status == 'failure'
uses: actions/upload-artifact@v4
with:
name: Test reports
Expand Down

0 comments on commit 83e645c

Please sign in to comment.