Release v96 #531
Workflow file for this run
This file contains 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: Daybreak CI Pipeline | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
targetplatform: [x64] | |
runs-on: windows-latest | |
env: | |
Solution_Path: Daybreak.sln | |
Test_Project_Path: Daybreak.Tests\Daybreak.Tests.csproj | |
Wpf_Project_Path: Daybreak\Daybreak.csproj | |
Actions_Allow_Unsecure_Commands: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7.0.306' | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v1.3.1 | |
- name: Execute Unit Tests | |
run: dotnet test $env:Test_Project_Path | |
- name: Restore the Wpf application to populate the obj folder | |
run: msbuild $env:Solution_Path /t:Restore /p:Configuration=$env:Configuration /p:RuntimeIdentifier=$env:RuntimeIdentifier | |
env: | |
Configuration: Debug | |
RuntimeIdentifier: win-${{ matrix.targetplatform }} |