-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (41 loc) · 1.76 KB
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: [windows-latest]
strategy:
matrix:
dotnet: [ '3.1.x' ]
steps:
- name: Checkout Main branch of Ultima5Redux
uses: actions/checkout@v2
- name: Checkout Ultima5ReduxTestDependancies
uses: actions/checkout@v2
with:
repository: bradhannah/Ultima5ReduxTestDependancies
token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT
path: Ultima5ReduxTestDependancies
# - name: Show me the name of my save file
# run: echo %USERPROFILE%\Documents\UltimaVRedux
#
# - name: Make save directory
# run: mkdir %USERPROFILE%\Documents\UltimaVRedux
#
# - name: Copy New Save format to home directory
# run: xcopy Ultima5ReduxTestDependancies\NewSaves\* "%USERPROFILE%\Documents\UltimaVRedux" /E /Y /s
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Setup NuGet
# You may pin to the exact commit or the version.
# uses: NuGet/setup-nuget@04b0c2b8d1b97922f67eca497d7cf0bf17b8ffe1
uses: NuGet/setup-nuget@v1.0.5
- name: Restore NuGet packages
run: nuget restore Ultima5ReduxSolution.sln
- name: Build the Solution
run: msbuild Ultima5ReduxSolution.sln
- name: NUnit Console Runner
run: .\packages\NUnit.ConsoleRunner.3.13.0\tools\nunit3-console.exe Ultima5ReduxTesting\bin\Debug\net48\Ultima5ReduxTesting.dll --testparam:DataDirectory="Ultima5ReduxTestDependancies/DataFiles" --testparam:SaveRootDirectory="Ultima5ReduxTestDependancies/Saves" --testparam:NewSaveRootDirectory="Ultima5ReduxTestDependancies/NewSaves"