Skip to content

Commit

Permalink
Add mikepenz/action-junit-report
Browse files Browse the repository at this point in the history
Annotations with stacktraces is a nice feature to have in our own
pipeline. The `mikepenz/action-junit-report` has been added as a
custom action and reused in the workflow.
  • Loading branch information
eddumelendez committed Nov 28, 2023
1 parent 1a3b233 commit c5254d0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/setup-junit-report/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Set up JUnit Report
description: Sets up JUnit Report
runs:
using: "composite"
steps:
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
detailed_summary: true
1 change: 1 addition & 0 deletions .github/workflows/ci-rootless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: ./gradlew --no-daemon --scan testcontainers:test --tests '*GenericContainerRuleTest'
- uses: ./.github/action/setup-junit-report
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
- name: Build and test with Gradle
run: |
./gradlew :testcontainers:check --no-daemon --continue --scan
- uses: ./.github/action/setup-junit-report

turbo-mode:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
Expand All @@ -71,6 +72,7 @@ jobs:
working-directory: ./smoke-test/
run: |
./gradlew check --no-daemon --continue --scan --info
- uses: ./.github/action/setup-junit-report

find_gradle_jobs:
needs: [core]
Expand Down Expand Up @@ -103,6 +105,7 @@ jobs:
- name: Build and test with Gradle (${{matrix.gradle_args}})
run: |
./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}}
- uses: ./.github/action/setup-junit-report

find_examples_jobs:
needs: [check]
Expand Down Expand Up @@ -137,6 +140,7 @@ jobs:
working-directory: ./examples/
run: |
./gradlew --no-daemon --continue --scan --info ${{matrix.gradle_args}}
- uses: ./.github/action/setup-junit-report

find_docs_examples_jobs:
needs: [check_examples]
Expand Down Expand Up @@ -169,3 +173,4 @@ jobs:
- name: Build and test with Gradle (${{matrix.gradle_args}})
run: |
./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}}
- uses: ./.github/action/setup-junit-report

0 comments on commit c5254d0

Please sign in to comment.