Skip to content

Commit 481e0e1

Browse files
committed
fix git flow
1 parent a2a342c commit 481e0e1

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/dotnet-desktop.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
runs-on: windows-latest
1919
env:
2020
Solution_Name: TimeTask.sln
21+
Main_Project_Path: TimeTask.csproj
2122
Build_Configuration: Release
2223
steps:
2324
- name: Checkout
@@ -26,12 +27,12 @@ jobs:
2627
- name: Setup MSBuild.exe
2728
uses: microsoft/setup-msbuild@v2
2829

29-
- name: Restore solution
30-
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Build_Configuration
30+
- name: Restore main project
31+
run: msbuild $env:Main_Project_Path /t:Restore /p:Configuration=$env:Build_Configuration
3132

32-
- name: Build solution
33-
run: msbuild $env:Solution_Name /p:Configuration=$env:Build_Configuration /p:Platform="Any CPU" /m
33+
- name: Build main project
34+
run: msbuild $env:Main_Project_Path /p:Configuration=$env:Build_Configuration /p:Platform="Any CPU" /m
3435

3536
- name: Execute unit tests (optional)
3637
if: ${{ github.event_name == 'workflow_dispatch' && inputs.run_tests == true }}
37-
run: dotnet test TimeTask.Tests/TimeTask.Tests.csproj -c $env:Build_Configuration --no-build
38+
run: dotnet test TimeTask.Tests/TimeTask.Tests.csproj -c $env:Build_Configuration

0 commit comments

Comments
 (0)