From ed3c3d49f4d81e98016b94f1599602c3c9db1983 Mon Sep 17 00:00:00 2001 From: fish9167 <674821954@qq.com> Date: Thu, 13 Jan 2022 11:24:58 +0800 Subject: [PATCH] add github action(run test cases) (#9982) add github action(run test cases) --- .github/workflows/run_test_cases.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/run_test_cases.yml diff --git a/.github/workflows/run_test_cases.yml b/.github/workflows/run_test_cases.yml new file mode 100644 index 0000000000..a374c077c2 --- /dev/null +++ b/.github/workflows/run_test_cases.yml @@ -0,0 +1,34 @@ +name: run test cases + +#on: pull_request +on: + discussion_comment: + types: [created, edited] + pull_request_review_comment: + types: [created, edited] + issue_comment: + types: [created, edited] + +jobs: + run-test-cases: + if: | + contains(github.event.comment.body, '@cocos-robot run test cases') + runs-on: run-test-win01 + steps: + - name: 'Checkout engine' + uses: actions/checkout@v2 + with: + path: engine + + - name: 'npm install' + run: | + cd engine + npm -v + npm install --registry https://registry.npm.taobao.org + - name: 'CocosCreator version' + shell: bash + run: | + echo "CocosCreator Version: ${{github.base_ref}}" + - name: 'Call run test cases job' + run: | + python3 -u ./pr-test/main.py ${{github.base_ref}}