From a1fa9863b6f5059bf175e4ce2e9436a1091cc2fe Mon Sep 17 00:00:00 2001 From: codegirl-007 Date: Sat, 1 Aug 2026 01:06:05 -0700 Subject: [PATCH] Set up github to run tests --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..85c9c43 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + pull_request: + push: + branches: [master, main] + +jobs: + test: + name: Engine tests + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install SDL3 + run: | + sudo apt-get update + sudo apt-get install -y libsdl3-dev + + - name: Setup Odin + uses: laytan/setup-odin@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + # Match local toolchain: odin version dev-2026-05 + release: dev-2026-05 + + - name: Odin version + run: odin version + + - name: Unit tests + run: make test + + - name: Typecheck toad example + run: make check