Skip to content

Commit

Permalink
Upgrade actions and use build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
menees authored Jun 1, 2024
1 parent a4fcd43 commit 9382618
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,21 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Add MSBuild to PATH
uses: microsoft/[email protected]

- name: Restore NuGet packages
run: msbuild Remoting.sln /p:Configuration=Release /t:Restore

- name: Run MSBuild on solution
run: msbuild Remoting.sln /p:Configuration=Release

- name: Add VSTest.Console.exe to PATH
uses: darenm/Setup-VSTest@v1

- name: Report release build unit tests
- uses: actions/[email protected]

- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 6.0.x

- name: Build everything
run: |
dir -r tests/**/*.Tests.dll | where {$_.Directory -like '*\bin\Release\*'}| %{ write-host $_ }
- name: Run release build unit tests
run: dir -r tests/**/*.Tests.dll | where {$_.Directory -like '*\bin\Release\*'}| %{ write-host "`n`n***** $_ *****"; vstest.console.exe $_ /Platform:X64 }
& .\eng\build.ps1 -build $true
- name: Run unit tests
run: |
& .\eng\build.ps1 -build $false -test $true
- name: Test artifact publishing
run: |
& .\eng\build.ps1 -build $false -publish $true

0 comments on commit 9382618

Please sign in to comment.