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}}