Files
cocos4/native/.github/workflows/unit-test.yml
T
minggo 5410a48a58 Implement more logic in native (#4131)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
Co-authored-by: dumganhar <dumganhar@gmail.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: Patrice Jiang <397136899@qq.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-01-07 18:39:40 +08:00

40 lines
1.0 KiB
YAML

name: 🧪 Run Tests
on: [pull_request]
jobs:
unit-test-with-cmake:
name: "Run on windows"
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Downlad external libraties
run: |
npm install
npm install gulp -g
node ./utils/download-deps.js
- name: Generate bindings
shell: bash
run: |
python -m pip install PyYAML==5.4.1 Cheetah3
python ./tools/tojs/genbindings.py
- name: Run Unit Tests
shell: bash
run: |
cmake -B tests/unit-test/build -S tests/unit-test -G"Visual Studio 16 2019" -A win32
cmake --build tests/unit-test/build --config Release
./tests/unit-test/build/src/Release/CocosTest.exe
#### TODO(PatriceJiang): model split
# - name: Run Module Tests
# shell: bash
# run: |
# cd tests/module-tests
# bash run-test-windows.sh