feat: add invariant-based test suite (50+ uncheateable tests) #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |