forked from cocos/engine-native
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 991 Bytes
/
Copy pathunit-test.yml
File metadata and controls
38 lines (32 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
- name: Run Module Tests
shell: bash
run: |
cd tests/module-tests
bash run-test-windows.sh