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