Version 3.4.0 #2
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
# This workflow uses actions that are not certified by GitHub. | |
name: build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
runs-on: windows-latest # For a list of available runner types, refer to | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
env: | |
Solution_Name: GA-SDK-MONO.sln | |
Test_Project_Path: GA_SDK_MONO_TEST/GA_SDK_MONO_TEST.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Restore NuGet packages | |
run: nuget restore GA-SDK-MONO.sln | |
- name: Install NUnit Runner | |
run: nuget install NUnit.Runners -Version 3.4.1 -OutputDirectory testrunner | |
- name: Build with xbuild | |
run: xbuild /p:Configuration=$env:Configuration GA-SDK-MONO.sln | |
env: | |
Configuration: ${{ matrix.configuration }} | |
- name: Run NUnit tests | |
run: mono ./testrunner/NUnit.ConsoleRunner.3.4.1/tools/nunit3-console.exe ./GA_SDK_MONO_TEST/bin/${{ matrix.configuration }}/GameAnalytics.Mono.Test.dll | |
env: | |
Configuration: ${{ matrix.configuration }} |