From 8199f3162541be51a3ce2427df4bf6fa68dc6b51 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Tue, 5 Aug 2025 13:39:20 -0500 Subject: [PATCH] Testing new workflow with unit testing. --- .gitea/workflows/emscripten_autobuild.yaml | 31 +++++++++++++++++++++- Adventures in Lestoria/Version.h | 2 +- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/emscripten_autobuild.yaml b/.gitea/workflows/emscripten_autobuild.yaml index c8275b4a..962cb05f 100644 --- a/.gitea/workflows/emscripten_autobuild.yaml +++ b/.gitea/workflows/emscripten_autobuild.yaml @@ -22,4 +22,33 @@ jobs: mv ${{ gitea.event.repository.name }}/bin/* /web/${{ gitea.event.repository.name }} echo "Move files to final directory (/web/${{ gitea.event.repository.name }})" - name: Cleanup - Web Build Available - run: echo "Emscripten build now available at http://projectdivar.com/files/web/${{ gitea.event.repository.name }}" \ No newline at end of file + run: echo "Emscripten build now available at http://projectdivar.com/files/web/${{ gitea.event.repository.name }}" + Unit_Testing: + runs-on: windows-latest + steps: + # using tmp v3 git branch + - uses: actions/checkout@v3 + # getting dependencies + - name: getting dependencies + working-directory: tools + run: ./BuildTest.bat + # set up + - name: set up + working-directory: tools + run: ./Setup.bat + # adding msbuild path + - name: add msbuild to PATH + uses: microsoft/setup-msbuild@v1.1 + # set up vstest path + - name: Setup VSTest Path + uses: darenm/Setup-VSTest@v1 + + # building sln in debug + - name: build debug + run: msbuild Dare.sln /p:Configuration=Unit Testing + + # run unit test + - name: run unit test + working-directory: bin\Debug-windows-x86_64\DareUnitTest + run: vstest.console.exe DareUnitTest.dll + \ No newline at end of file diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index 1069391d..155137b2 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 1 #define VERSION_MINOR 3 #define VERSION_PATCH 0 -#define VERSION_BUILD 12251 +#define VERSION_BUILD 12252 #define stringify(a) stringify_(a) #define stringify_(a) #a