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 747b3ac
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ 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 "::notice ${{ format('[Click here to preview Test Results HTML page in browser]({0})', steps.preview_test_reports.outputs.url) }}"

0 comments on commit 747b3ac

Please sign in to comment.