Skip to content

Compatibility with Unity & Android #53

Compatibility with Unity & Android

Compatibility with Unity & Android #53

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@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- 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: Get Test Assemblies (.NET Framework)
uses: tj-actions/glob@v21
id: get-framework-tests
with:
files: |
**\bin\**\*Test.Psi*.exe
**\bin\**\*Test.Psi*.dll
!**\bin\**\netcoreapp*\*
!**\bin\**\net[0-9].[0-9]*\*
!**\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/glob@v21
id: get-netcore-tests
with:
files: |
**\bin\**\net[0-9].[0-9]\Test.Psi*.dll
!**\bin\**\net[0-9].[0-9]\Test.Psi*.Common.dll
- name: Run Tests
run: dotnet test --filter "TestCategory!=Performance" -l "console;verbosity=detailed" ${{ steps.get-netcore-tests.outputs.paths }}