diff --git a/.github/workflows/run_test_cases.yml b/.github/workflows/run_test_cases.yml index 433500beb1b..a5c7626ab3b 100644 --- a/.github/workflows/run_test_cases.yml +++ b/.github/workflows/run_test_cases.yml @@ -66,7 +66,7 @@ jobs: echo "pr_base_sha=$pr_base_sha" >> $GITHUB_OUTPUT - name: Checkout engine - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: ${{ steps.parse_pr.outputs.pr_base_ref }} @@ -143,7 +143,7 @@ jobs: 7z x -y $CCTEST_PLUGINS/*.zip -o$TEST_PROJECTS_EXTERNAL/extensions/automation-framework - name: Run test cases - timeout-minutes: 90 + timeout-minutes: 100 id: run_test_cases run: | scheduler cicd -p PR-TEST -v ${{ steps.parse_pr.outputs.pr_base_ref }} -g PR-TEST -i "1,3,5" -d E:\cctest\devices.json -r https://cctest.cocos.org @@ -153,7 +153,7 @@ jobs: python3 -u ./python/main.py --target=job_editor --jobid=$JOBID - name: Write comment body and issue number to file - uses: actions/github-script@v5 + uses: actions/github-script@v7 env: PR_AUTHOR: ${{ steps.parse_pr.outputs.pr_author }} EDITOR_VERSION: ${{ steps.run_test_cases.outputs.editor }} @@ -174,7 +174,7 @@ jobs: ${process.env.TASK_REPORT}`); - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: commentwin.txt path: | @@ -227,7 +227,7 @@ jobs: echo "pr_base_sha=$pr_base_sha" >> $GITHUB_OUTPUT - name: Checkout engine - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: ${{ steps.parse_pr.outputs.pr_base_ref }} @@ -301,7 +301,7 @@ jobs: unzip -oq $CCTEST_PLUGINS/*.zip -d $TEST_PROJECTS_EXTERNAL/extensions/automation-framework - name: Run test cases - timeout-minutes: 90 + timeout-minutes: 100 id: run_test_cases run: | scheduler cicd -p PR-TEST -v ${{ steps.parse_pr.outputs.pr_base_ref }} -g PR-TEST -i 0,2,4 -d /Users/admin/Documents/cctest/devices.json -r https://cctest.cocos.org @@ -310,7 +310,7 @@ jobs: python3 -u ./python/main.py --target=job_editor --jobid=$JOBID - name: Write comment body and issue number to file - uses: actions/github-script@v5 + uses: actions/github-script@v7 env: PR_AUTHOR: ${{ steps.parse_pr.outputs.pr_author }} EDITOR_VERSION: ${{ steps.run_test_cases.outputs.editor }} @@ -332,14 +332,14 @@ jobs: ${process.env.TASK_REPORT}`); - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pr.txt path: | pr.txt - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: comment.txt path: | diff --git a/.github/workflows/run_test_cases_pr_comment.yml b/.github/workflows/run_test_cases_pr_comment.yml index 9e776a28493..137fde9fdfa 100644 --- a/.github/workflows/run_test_cases_pr_comment.yml +++ b/.github/workflows/run_test_cases_pr_comment.yml @@ -26,7 +26,7 @@ jobs: - name: Set PR environment variable - uses: actions/github-script@v4 + uses: actions/github-script@v7 with: script: | const fs = require('fs'); @@ -34,13 +34,13 @@ jobs: core.exportVariable('PR_NUMBER', pr); - name: Update Mac Comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 with: issue-number: ${{ env.PR_NUMBER }} body-path: 'comment.txt' - name: Update Win Comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 with: issue-number: ${{ env.PR_NUMBER }} body-path: 'commentwin.txt'