Change action comment (#12175)

change run test case report(markdwn)
This commit is contained in:
fish9167
2022-07-25 14:23:32 +08:00
committed by GitHub
parent 00fca7a77c
commit fd809a131a
+7 -4
View File
@@ -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 }}