-
Notifications
You must be signed in to change notification settings - Fork 202
34 lines (30 loc) · 971 Bytes
/
build.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
name: Run Test Case
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Get Project TargetFramework Name
id: getprojecttargetframework
uses: mavrosxristoforos/[email protected]
with:
xml-file: 'CSharp.lua.Launcher/CSharp.lua.Launcher.csproj'
xpath: '//TargetFramework'
- name: Get Project net version
id: getnetversion
uses: bhowell2/[email protected]
with:
value: '${{steps.getprojecttargetframework.outputs.info}}'
index_of_str: 'net'
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{steps.getnetversion.outputs.substring}}.x
- name: clear
run: dotnet clean --configuration Debug && dotnet nuget locals all --clear
- name: Build with dotnet
run: dotnet build --configuration Debug
- name: Run Test Case
run: cd test/ & test
shell: cmd