test
This commit is contained in:
parent
2c30479c50
commit
0f38d4d33e
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: YourSolutionDirectory # 修改为实际的解决方案所在目录
|
path: ChangeTimestamp # 修改为实际的解决方案所在目录
|
||||||
|
|
||||||
- name: Use .NET Framework version 4.0
|
- name: Use .NET Framework version 4.0
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
|
@ -24,15 +24,15 @@ jobs:
|
||||||
dotnet-version: '4.0'
|
dotnet-version: '4.0'
|
||||||
|
|
||||||
- name: Restore NuGet packages
|
- name: Restore NuGet packages
|
||||||
working-directory: YourSolutionDirectory # 修改为实际的解决方案所在目录
|
working-directory: ChangeTimestamp # 修改为实际的解决方案所在目录
|
||||||
run: nuget restore YourSolution.sln
|
run: nuget restore ChangeTimestamp.sln
|
||||||
|
|
||||||
- name: Build solution
|
- name: Build solution
|
||||||
working-directory: YourSolutionDirectory # 修改为实际的解决方案所在目录
|
working-directory: ChangeTimestamp # 修改为实际的解决方案所在目录
|
||||||
run: msbuild.exe YourSolution.sln /t:Build /p:Configuration=Release
|
run: msbuild.exe ChangeTimestamp.sln /t:Build /p:Configuration=Release
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: YourTestProjectDirectory # 修改为实际的测试项目所在目录
|
working-directory: ChangeTimestamp/TestProject # 修改为实际的测试项目所在目录
|
||||||
run: vstest.console.exe YourTestProject.dll /Logger:trx
|
run: vstest.console.exe YourTestProject.dll /Logger:trx
|
||||||
|
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
|
@ -40,5 +40,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Artifacts
|
||||||
path: |
|
path: |
|
||||||
YourSolutionDirectory/bin/Release/*
|
ChangeTimestamp/bin/Release/*
|
||||||
YourTestProjectDirectory/TestResults/*.trx
|
ChangeTimestamp/TestProject/TestResults/*.trx
|
||||||
|
|
Loading…
Reference in New Issue