diff --git a/.github/workflows/workflow_test.yml b/.github/workflows/workflow_test.yml index 5e87f9cee..57db0d142 100644 --- a/.github/workflows/workflow_test.yml +++ b/.github/workflows/workflow_test.yml @@ -87,6 +87,8 @@ jobs: with: mode: combine html-report: true + markdown-report: true + - run: cat upload/tool_test_output.md >> $GITHUB_STEP_SUMMARY - uses: actions/upload-artifact@v3 with: name: 'All tool test results' @@ -96,6 +98,19 @@ jobs: id: check with: mode: check + - name: Get PR object + if: failure() + uses: 8BitJonny/gh-get-current-pr@2.2.0 + id: getpr + with: + sha: ${{ github.event.after }} + - name: Post comment with test report + if: failure() + uses: peter-evans/create-or-update-comment@v3 + with: + token: ${{ secrets.PAT }} + issue-number: ${{ steps.getpr.outputs.number }} + body-path: upload/tool_test_output.md # deploy workflows to organization deploy: @@ -153,7 +168,7 @@ jobs: with: sha: ${{ github.event.after }} - name: Create comment - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v3 with: token: ${{ secrets.PAT }} issue-number: ${{ steps.getpr.outputs.number }}