-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.12 KB
/
tests.yml
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
39
40
41
42
43
44
name: 🧪 Run Unit Tests
on: [push, pull_request]
jobs:
Tests:
name: Run All Tests on 3.5.1
runs-on: ubuntu-latest
container: barichello/godot-ci:mono-3.5.1
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Python Dependencies
run: |
apt-get update
apt-get -y install python3
apt-get -y install python3-pip
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- name: Install Dependencies
run: |
nuget restore
mkdir -p .mono/assemblies/Debug
cp /usr/local/bin/GodotSharp/Api/Release/* .mono/assemblies/Debug
- name: Compile
run: msbuild
- name: Run Unit Tests
run: godot addons/WAT/cli.tscn run=all
- name: Run Solution Crash Test
run: python3 solution_crash_tester.py 0 msbuild
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Test Results
path: tests/results.xml