From 79eaeac9975575ac87377cea3f49618fb5810823 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Mon, 9 Aug 2021 05:04:38 -0500 Subject: [PATCH 1/5] Update dotnet.yml --- .github/workflows/dotnet.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index fcdd8ae..ab5333d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -8,6 +8,10 @@ on: jobs: build: + + strategy: + matrix: + configuration: [Debug, Release] runs-on: windows-latest From ce2d158941ca53e4d208ea2628b38b48fe84590d Mon Sep 17 00:00:00 2001 From: pointfeev Date: Mon, 9 Aug 2021 05:07:41 -0500 Subject: [PATCH 2/5] Create dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/dotnet-desktop.yml diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 0000000..e322ee5 --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,48 @@ +name: .NET Core Desktop + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + + strategy: + matrix: + configuration: [Debug, Release] + + runs-on: windows-latest # For a list of available runner types, refer to + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + + env: + Solution_Name: CreamInstaller.sln # Replace with your solution name, i.e. MyWpfApp.sln. + Test_Project_Path: CreamInstaller\CreamInstaller.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + # Install the .NET Core workload + - name: Install .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v1.0.2 + + # Execute all unit tests in the solution + - name: Execute unit tests + run: dotnet test + + # Restore the application to populate the obj folder with RuntimeIdentifiers + - name: Restore the application + run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration + env: + Configuration: ${{ matrix.configuration }} From 5946dc43117203435940ad415cb03334d873f4e8 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Mon, 9 Aug 2021 05:08:16 -0500 Subject: [PATCH 3/5] Update dotnet.yml --- .github/workflows/dotnet.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ab5333d..fcdd8ae 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -8,10 +8,6 @@ on: jobs: build: - - strategy: - matrix: - configuration: [Debug, Release] runs-on: windows-latest From 5dc9f914561de311a5db4798c74b0ed50818f420 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Mon, 9 Aug 2021 05:10:22 -0500 Subject: [PATCH 4/5] Delete dotnet.yml --- .github/workflows/dotnet.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml deleted file mode 100644 index fcdd8ae..0000000 --- a/.github/workflows/dotnet.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: .NET - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 5.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal From cce5a083228db5a56d2cc8a202f27616f860a7f7 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Mon, 9 Aug 2021 05:12:38 -0500 Subject: [PATCH 5/5] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index e322ee5..ca46587 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -14,12 +14,11 @@ jobs: matrix: configuration: [Debug, Release] - runs-on: windows-latest # For a list of available runner types, refer to - # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + runs-on: windows-latest env: - Solution_Name: CreamInstaller.sln # Replace with your solution name, i.e. MyWpfApp.sln. - Test_Project_Path: CreamInstaller\CreamInstaller.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. + Solution_Name: CreamInstaller.sln + Test_Project_Path: CreamInstaller\CreamInstaller.csproj steps: - name: Checkout @@ -27,22 +26,18 @@ jobs: with: fetch-depth: 0 - # Install the .NET Core workload - - name: Install .NET Core + - name: Install .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - - name: Setup MSBuild.exe + - name: Setup MSBuild uses: microsoft/setup-msbuild@v1.0.2 - # Execute all unit tests in the solution - - name: Execute unit tests + - name: Execute Unit Tests run: dotnet test - # Restore the application to populate the obj folder with RuntimeIdentifiers - - name: Restore the application + - name: Restore Application run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration env: Configuration: ${{ matrix.configuration }}