Skip to content

feat: add invariant-based test suite (50+ uncheateable tests) #23

feat: add invariant-based test suite (50+ uncheateable tests)

feat: add invariant-based test suite (50+ uncheateable tests) #23

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake libsdl2-dev
- name: Configure
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=ON \
-DSDL2_PATH=/usr
- name: Build
run: cmake --build build --parallel
- name: Run ctest
run: ctest --test-dir build --output-on-failure
- name: Run test_math
run: ./build/tests
- name: Debug build artifacts
run: |
echo "=== pwd ==="
pwd
echo "=== ls -la build/ ==="
ls -la build/
echo "=== file build/demo ==="
file build/demo
echo "=== ldd build/demo ==="
ldd build/demo
- name: Smoke test demo
run: ./build/demo