Test Report: Commit 9e8bae7c471ea85f1ae1d190d6d2bc7a5d190d6d #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Test Report' | |
run-name: 'Test Report: Commit ${{ github.sha }}' | |
on: | |
workflow_run: | |
workflows: ['CI'] | |
types: | |
- completed | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
web-page-report: | |
name: Web Page Report | |
runs-on: ubuntu-22.04 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Download test results | |
uses: actions/download-artifact@v4 | |
with: | |
run-id: ${{ github.event.workflow_run.id }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
name: test-results | |
path: test-results | |
- uses: dorny/[email protected] | |
id: test-results | |
with: | |
name: Mocha Tests | |
path: test-results/test-report.json | |
reporter: mocha-json | |
# Workaround for error 'fatal: not a git repository' caused by a call to 'git ls-files' | |
# See: https://github.com/dorny/test-reporter/issues/169#issuecomment-1583560458 | |
max-annotations: 0 | |
- name: Test Report Summary | |
run: | | |
echo "### Test Report page is ready! :rocket:" >> $GITHUB_STEP_SUMMARY | |
echo "And available at the following [Link](${{ steps.test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY |