Skip to content

Commit

Permalink
Update actions version and set the timeout value to 100 in run_test_c…
Browse files Browse the repository at this point in the history
…ases.yml. (#17326)
  • Loading branch information
dumganhar authored Jul 7, 2024
1 parent 27c4a7c commit b9ba8cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/run_test_cases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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: |
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run_test_cases_pr_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ jobs:
- name: Set PR environment variable
uses: actions/github-script@v4
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const pr = Number(fs.readFileSync('pr.txt', 'utf8'));
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'

0 comments on commit b9ba8cb

Please sign in to comment.