From c0143c5bf5c93ee15d0c4c7ce0d7a86121e76077 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Mon, 9 Aug 2021 05:24:03 -0500 Subject: [PATCH] Update and rename dotnet-desktop.yml to check.yml --- .../{dotnet-desktop.yml => check.yml} | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) rename .github/workflows/{dotnet-desktop.yml => check.yml} (60%) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/check.yml similarity index 60% rename from .github/workflows/dotnet-desktop.yml rename to .github/workflows/check.yml index ca46587..4da2400 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: .NET Core Desktop +name: Check on: push: @@ -26,18 +26,30 @@ jobs: with: fetch-depth: 0 - - name: Install .NET + - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x + - name: Restore Project + run: dotnet restore + + - name: Build Project + run: dotnet build --no-restore + + - name: Test Project + run: dotnet test --no-build --verbosity normal + - name: Setup MSBuild uses: microsoft/setup-msbuild@v1.0.2 - - name: Execute Unit Tests - run: dotnet test - - - name: Restore Application + - name: Restore Solution run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration env: Configuration: ${{ matrix.configuration }} + + - name: Build Solution + run: msbuild $env:Solution_Name /t:Build /p:Configuration=$env:Configuration + env: + Configuration: ${{ matrix.configuration }} +