Skip to content

fix #448

fix #448 #256

Workflow file for this run

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