From 0f38d4d33ec1a4e4b3fee5bd64507638340fd915 Mon Sep 17 00:00:00 2001 From: Sora <45709238+sorabug@users.noreply.github.com> Date: Sun, 16 Apr 2023 08:08:45 +0800 Subject: [PATCH] test --- .github/workflows/dotnet-desktop.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index a4d1e61..83f6628 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -16,7 +16,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 with: - path: YourSolutionDirectory # 修改为实际的解决方案所在目录 + path: ChangeTimestamp # 修改为实际的解决方案所在目录 - name: Use .NET Framework version 4.0 uses: microsoft/setup-msbuild@v1.0.2 @@ -24,15 +24,15 @@ jobs: dotnet-version: '4.0' - name: Restore NuGet packages - working-directory: YourSolutionDirectory # 修改为实际的解决方案所在目录 - run: nuget restore YourSolution.sln + working-directory: ChangeTimestamp # 修改为实际的解决方案所在目录 + run: nuget restore ChangeTimestamp.sln - name: Build solution - working-directory: YourSolutionDirectory # 修改为实际的解决方案所在目录 - run: msbuild.exe YourSolution.sln /t:Build /p:Configuration=Release + working-directory: ChangeTimestamp # 修改为实际的解决方案所在目录 + run: msbuild.exe ChangeTimestamp.sln /t:Build /p:Configuration=Release - name: Run tests - working-directory: YourTestProjectDirectory # 修改为实际的测试项目所在目录 + working-directory: ChangeTimestamp/TestProject # 修改为实际的测试项目所在目录 run: vstest.console.exe YourTestProject.dll /Logger:trx - name: Archive artifacts @@ -40,5 +40,5 @@ jobs: with: name: Artifacts path: | - YourSolutionDirectory/bin/Release/* - YourTestProjectDirectory/TestResults/*.trx + ChangeTimestamp/bin/Release/* + ChangeTimestamp/TestProject/TestResults/*.trx