Skip to content

Commit

Permalink
#46 Dodan GitHub Actions yaml file for
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatijani committed Jun 14, 2024
1 parent d90dbc2 commit 696f7e1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_and_test_f16.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 696f7e1

Please sign in to comment.