]> git.seodisparate.com - UDPConnection/commitdiff
Add action/workflow to run UnitTest
authorStephen Seo <seo.disparate@gmail.com>
Fri, 12 Jan 2024 05:06:14 +0000 (14:06 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 12 Jan 2024 05:06:14 +0000 (14:06 +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..0f9d698
--- /dev/null
@@ -0,0 +1,14 @@
+name: Run UnitTests
+on:
+  push:
+    branches:
+      - '*'
+
+jobs:
+  build-and-run-tests:
+    runs-on: archLinux
+    steps:
+      - run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/UDPConnection.git UDPC
+      - run: cd UDPC && git checkout $GITHUB_REF_NAME
+      - run: cd UDPC && cmake -S . -B buildDebug -DCMAKE_BUILD_TYPE=Debug
+      - run: make -C UDPC/buildDebug && ./UDPC/buildDebug/UnitTest