Skip to content

Increased remoting test timeout and added more logging (#299) #21

Increased remoting test timeout and added more logging (#299)

Increased remoting test timeout and added more logging (#299) #21

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: MSBuild
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
env:
BUILD_CONFIGURATION: ${{matrix.configuration}}
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: ./Psi.sln
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Install .NET 3.1
# Required to run the cross-framework serialization tests
uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
- name: Get Test Assemblies (.NET Framework)
uses: tj-actions/[email protected]
id: get-framework-tests
with:
files: |
**\bin\**\*Test.Psi*.exe
**\bin\**\*Test.Psi*.dll
!**\bin\**\netcoreapp*\*
!**\bin\**\net5.0*\*
!**\bin\**\*Test.Psi*.Common.dll
!**\bin\**\Test.Psi.exe
- name: Run Tests
run: dotnet test --filter "TestCategory!=Performance" -l "console;verbosity=detailed" ${{ steps.get-framework-tests.outputs.paths }}
- name: Get Test Assemblies (.NET Core)
uses: tj-actions/[email protected]
id: get-netcore-tests
with:
files: |
**\bin\**\netcoreapp*\*Test.Psi*.dll
!**\bin\**\netcoreapp*\*Test.Psi*.Common.dll
- name: Run Tests
run: dotnet test --filter "TestCategory!=Performance" -l "console;verbosity=detailed" ${{ steps.get-netcore-tests.outputs.paths }}