diff --git a/.github/workflows/ci-report.yml b/.github/workflows/ci-report.yml index b31e198..732bb39 100644 --- a/.github/workflows/ci-report.yml +++ b/.github/workflows/ci-report.yml @@ -10,11 +10,25 @@ permissions: checks: write jobs: report: + name: Report on Unit Tests runs-on: ubuntu-latest steps: - - uses: dorny/test-reporter@v1 + - id: report + uses: dorny/test-reporter@v1 with: artifact: test-results - name: Report on Unit Tests - path: test/results-report.json + name: Unit Test Results + path: results-report.json reporter: mocha-json + summarise: + name: Report on Unit Tests + runs-on: ubuntu-latest + needs: report + steps: + - run: | + echo "## Unit Test Results" >> $GITHUB_STEP_SUMMARY + echo ":white_check_mark: ${{needs.report.outputs.passed}} passed" >> $GITHUB_STEP_SUMMARY + echo ":x: ${{needs.report.outputs.failed}} failed" >> $GITHUB_STEP_SUMMARY + echo ":white_circle: ${{needs.report.outputs.skipped}} skipped" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "[View Full Report](${{needs.report.outputs.url_html}})" >> $GITHUB_STEP_SUMMARY \ No newline at end of file diff --git a/.github/workflows/npm-test.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/npm-test.yml rename to .github/workflows/ci.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/release.yml similarity index 100% rename from .github/workflows/npm-publish.yml rename to .github/workflows/release.yml