Skip to content

Create test system using doctest #16

Create test system using doctest

Create test system using doctest #16

Workflow file for this run

name: Unit Tests
on:
pull_request:
types: [opened, edited, reopened, synchronize]
env:
LANG: "en_US.UTF-8"
jobs:
ci:
name: Run Unit Tests
runs-on: ubuntu-20.04
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \
libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm
- name: Setup Godot
uses: lihop/setup-godot@v2
with:
version: 4.2.1-stable
- name: Set up Python (for SCons)
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install scons
run: |
python -m pip install scons
- name: Build module
run: |
cd godot-cpp
scons platform=linux target=template_debug
cd ..
scons platform=linux target=template_debug disable_exceptions=no build_library=no tests=1
- name: Run tests
run: |
# launch the editor once so resources import, and use timeout to kill it after it's done
set +e
timeout 45 godot --no-window --disable-vsync -e
set -e
godot --no-window --disable-vsync -T