]> git.seodisparate.com - EntityComponentMetaSystem/commitdiff
Add forgejo action to run unit tests
authorStephen Seo <seo.disparate@gmail.com>
Wed, 17 Jan 2024 09:57:29 +0000 (18:57 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 17 Jan 2024 09:57:29 +0000 (18:57 +0900)
.forgejo/workflows/unittests.yml [new file with mode: 0644]

diff --git a/.forgejo/workflows/unittests.yml b/.forgejo/workflows/unittests.yml
new file mode 100644 (file)
index 0000000..cfc83a0
--- /dev/null
@@ -0,0 +1,14 @@
+name: Run UnitTests
+on:
+  push:
+    branches:
+      - '*'
+
+jobs:
+  build-and-run-unittests:
+    runs-on: archLinux
+    steps:
+      - run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/EntityComponentMetaSystem.git ECMS
+      - run: cd ECMS && git checkout $GITHUB_REF_NAME
+      - run: cd ECMS && cmake -S src -B buildDebug -DCMAKE_BUILD_TYPE=Debug
+      - run: make -C ECMS/buildDebug && ./ECMS/buildDebug/UnitTests