From 79508e552791fa5360c6d5963f4dc3a846adef73 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 24 Jan 2024 12:23:31 +0900 Subject: [PATCH] Add forgejo action/workflow to run UnitTests --- .forgejo/workflows/unittests.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .forgejo/workflows/unittests.yml diff --git a/.forgejo/workflows/unittests.yml b/.forgejo/workflows/unittests.yml new file mode 100644 index 0000000..056da06 --- /dev/null +++ b/.forgejo/workflows/unittests.yml @@ -0,0 +1,15 @@ +name: Run UnitTests +on: + push: + branches: + - '*' + +jobs: + build-and-run-tests: + runs-on: any_archLinux + steps: + - run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/Triangles.git Tri + - run: cd Tri && git checkout $GITHUB_REF_NAME + - run: cd Tri && git submodule update --init --recursive + - run: cd Tri && cmake -S . -B buildDebug -DCMAKE_BUILD_TYPE=Debug + - run: make -C Tri/buildDebug UnitTest_Triangles && ./Tri/buildDebug/UnitTest_Triangles