Skip to content

Re-created a GitHub build & test pipeline #132

Re-created a GitHub build & test pipeline

Re-created a GitHub build & test pipeline #132

Workflow file for this run

name: Build Managed
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
managed-build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Restore
run: nuget restore src\BehaviorsSdk.sln
- name: Build
run: msbuild src\BehaviorsSdk.sln /p:Configuration=Release /p:SignType=real
- name: Run Tests
uses: microsoft/vstest-action@v1.0.0
with:
searchFolder: Test\UnitTests\bin\Release\net462
testAssembly: UnitTests.dll
- name: Pack Behaviors
if: success()
run: msbuild src\Microsoft.Xaml.Behaviors\Microsoft.Xaml.Behaviors.csproj /p:Configuration=Release -t:pack
- name: Upload NuGet Artifacts
if: success()
uses: actions/upload-artifact@v2
with:
path: src\Microsoft.Xaml.Behaviors\bin\Release\*.nupkg