Skip to content

fix #492

fix #492 #285

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/get-xml-info@1.0
with:
xml-file: 'CSharp.lua.Launcher/CSharp.lua.Launcher.csproj'
xpath: '//TargetFramework'
- name: Get Project net version
id: getnetversion
uses: bhowell2/github-substring-action@v1.0.0
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