From fd809a131aec22b45bbd69edf705c1841552a101 Mon Sep 17 00:00:00 2001 From: fish9167 <674821954@qq.com> Date: Mon, 25 Jul 2022 14:23:32 +0800 Subject: [PATCH] Change action comment (#12175) change run test case report(markdwn) --- .github/workflows/run_test_cases.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_test_cases.yml b/.github/workflows/run_test_cases.yml index 1baa89c064..b65d9ebae8 100644 --- a/.github/workflows/run_test_cases.yml +++ b/.github/workflows/run_test_cases.yml @@ -81,7 +81,7 @@ jobs: id: run_test_cases run: | cd .. - python3 -u ./python/main.py ${{ steps.parse_pr.outputs.pr_base_ref }} + python3 -u ./python/main.py --workspace ${{github.workspace}} --pr_number ${{ steps.get_pr.outputs.pr_number }} --author ${{ steps.parse_pr.outputs.pr_author }} --base_ref ${{ steps.parse_pr.outputs.pr_base_ref }} --base_sha ${{ steps.parse_pr.outputs.pr_base_sha }} --head_ref ${{ steps.parse_pr.outputs.pr_head_ref }} --head_sha ${{ steps.parse_pr.outputs.pr_head_sha }} - name: Update Comment uses: peter-evans/create-or-update-comment@v1 with: @@ -91,8 +91,10 @@ jobs: - Test Platform: Windows - Task Result: ${{ steps.run_test_cases.outputs.task }} - Task URL: ${{ steps.run_test_cases.outputs.url }} - - Task Details: ${{ steps.run_test_cases.outputs.msg }} - GitHub Action: https://github.com/cocos/cocos-engine/actions/runs/${{ github.run_id }} + ## Task Details + ${{ steps.run_test_cases.outputs.report }} + macOS-RunTestCases: if: | contains(github.event.pull_request.body, '[X] needs automatic test cases check') || @@ -164,7 +166,7 @@ jobs: id: run_test_cases run: | cd .. - python3 -u ./python/main.py ${{ steps.parse_pr.outputs.pr_base_ref }} + python3 -u ./python/main.py --workspace ${{github.workspace}} --pr_number ${{ steps.get_pr.outputs.pr_number }} --author ${{ steps.parse_pr.outputs.pr_author }} --base_ref ${{ steps.parse_pr.outputs.pr_base_ref }} --base_sha ${{ steps.parse_pr.outputs.pr_base_sha }} --head_ref ${{ steps.parse_pr.outputs.pr_head_ref }} --head_sha ${{ steps.parse_pr.outputs.pr_head_sha }} - name: Update Comment uses: peter-evans/create-or-update-comment@v1 with: @@ -174,5 +176,6 @@ jobs: - Test Platform: macOS - Task Result: ${{ steps.run_test_cases.outputs.task }} - Task URL: ${{ steps.run_test_cases.outputs.url }} - - Task Details: ${{ steps.run_test_cases.outputs.msg }} - GitHub Action: https://github.com/cocos/cocos-engine/actions/runs/${{ github.run_id }} + ## Task Details + ${{ steps.run_test_cases.outputs.report }}