-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from microsoft/dev/jestedfa/readd-github-action
Re-created a GitHub build & test pipeline
- Loading branch information
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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/[email protected] | ||
|
||
- name: Restore | ||
run: nuget restore src\BehaviorsSdk.sln | ||
|
||
- name: Build | ||
run: msbuild src\BehaviorsSdk.sln /p:Configuration=Release /p:SignType=real | ||
|
||
- name: Run Tests | ||
run: dotnet test Test\UnitTests\UnitTests.csproj | ||
|
||
- 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 |
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