fix #508 #297
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
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 |