From 8897e03bad9002e0adb06671309e7502f99216a1 Mon Sep 17 00:00:00 2001 From: Llywelwyn <82828093+Llywelwyn@users.noreply.github.com> Date: Mon, 25 Jul 2022 19:15:50 +0100 Subject: [PATCH] Create dotnet-build-test.yml --- .github/workflows/dotnet-build-test.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/dotnet-build-test.yml diff --git a/.github/workflows/dotnet-build-test.yml b/.github/workflows/dotnet-build-test.yml new file mode 100644 index 0000000..f96740b --- /dev/null +++ b/.github/workflows/dotnet-build-test.yml @@ -0,0 +1,26 @@ +name: ci build and test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: windows-latest + env: + Solution_Name: CharacterRecordsGenerator.sln + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Add MSBuild to path + uses: microsoft/setup-msbuild@v1.1 + - name: Setup NuGet + uses: NuGet/setup-nuget@v1 + - name: Restore nuget + run: nuget restore $env:Solution_Name + - name: Build + run: msbuild $env:Solution_Name /t:Rebuild -property:Configuration=Release + - name: Unit tests + run: dotnet test --no-build --verbosity normal