Merge pull request #105 from david-risney/refactor-mainwindow #72
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Microsoft Corporation. | |
# Licensed under the MIT license. | |
# This continuous integration pipeline is triggered anytime a user pushes code to the repo. | |
# This pipeline builds the Wpf project, runs unit tests, then saves the MSIX build artifact. | |
name: Wpf Continuous Integration | |
# Trigger on every main branch push and pull request | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
targetplatform: [x86, x64] | |
runs-on: windows-latest | |
env: | |
SigningCertificate: wv2util\wv2util_TemporaryKey.pfx | |
Solution_Path: wv2util\wv2util.sln | |
Test_Dll_Path: wv2utilTests\bin\Debug\wv2utilTests.dll | |
Wpf_Project_Path: wv2util\wv2util.csproj | |
Actions_Allow_Unsecure_Commands: true # Allows AddPath and SetEnv commands | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.x' | |
# Add MsBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
# Restore and rebuild the application | |
- name: Restore the Wpf application to populate the obj folder | |
run: msbuild $env:Solution_Path /t:Restore,Rebuild /p:Configuration=$env:Configuration | |
env: | |
Configuration: Debug | |
# RuntimeIdentifier: win-${{ matrix.targetplatform }} | |
# Test | |
- name: Execute Unit Tests | |
run: dotnet test $env:Test_Dll_Path |