From 696f7e1b400699ea3166e94a53d02693d9010f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Matijani=C4=87?= Date: Fri, 14 Jun 2024 17:05:10 +0200 Subject: [PATCH] #46 Dodan GitHub Actions yaml file for --- .github/workflows/build_and_test_f16.yml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build_and_test_f16.yml diff --git a/.github/workflows/build_and_test_f16.yml b/.github/workflows/build_and_test_f16.yml new file mode 100644 index 0000000..46affd0 --- /dev/null +++ b/.github/workflows/build_and_test_f16.yml @@ -0,0 +1,35 @@ +name: Build and unit test F16 + +on: + push: + branches: + - 46-nova-funkcionalnost-f16 + pull_request: + branches: + - 46-nova-funkcionalnost-f16 + workflow_dispatch: + +jobs: + buildTest: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.6 + + - name: Install MSBuild + uses: microsoft/setup-msbuild@v2 + + - name: Install NuGet + uses: nuget/setup-nuget@v2 + + - name: Restore dependencies + run: nuget restore Software\E_Libra\E_Libra.sln + + - name: Build solution + run: msbuild.exe Software\E_Libra\E_Libra.sln /p:platform="Any CPU" /p:configuration="Debug" + + - name: Build Unit Test project + run: dotnet build Software\E_Libra\UnitTesting\UnitTesting.csproj --configuration Debug + + - name: Run unit tests + run: dotnet test Software\E_Libra\UnitTesting\UnitTesting.csproj --no-build --verbosity normal \ No newline at end of file