Skip to content

Commit

Permalink
#316 Show test result HTML report
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Jan 20, 2024
1 parent 770043c commit dcac79f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,20 @@ jobs:
- name: Execute Gradle build
run: ./gradlew check --scan -stacktrace

- name: 'Upload Artifact'
- name: 'Upload Test Results'
uses: actions/upload-artifact@v4
with:
name: 'Test Results'
path: build/reports/tests
path: build/reports/tests

- name: 'Generate Test Results Preview'
uses: pavi2410/html-preview-action@v2
id: preview_test_reports
with:
html_file: 'build/reports/tests/test/index.html'

- name: 'Show Test Result Preview'
run:
echo ${{ format('[Click here to preview HTML page in browser]({0})', steps.preview_test_reports.outputs.url) }}
with:
message: ${{ format('[Click here to preview HTML page in browser]({0})', steps.preview_test_reports.outputs.url) }}

0 comments on commit dcac79f

Please sign in to comment.