Skip to content

Create test system using doctest #6

Create test system using doctest

Create test system using doctest #6

Workflow file for this run

name: Unit Tests
on:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
ci:
name: Run Unit Tests
runs-on: ubuntu-20.04
container:
image: barichello/godot-ci:4.2.1
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure dependencies
run: |
apt-get update
apt-get install -y 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: 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
- name: Run tests
run: |
set -e
godot --headless -T