Skip to content

Commit

Permalink
Turned CI for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrKarczmarz committed Sep 11, 2024
1 parent 26008c7 commit 2f5b062
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/cake-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Cake Build
name: Cake Build

on:
push:
branches: [ main ]
branches: [ piotr/ci-infrastructure-update ]
pull_request:
branches: [ main ]
workflow_dispatch:
Expand All @@ -17,6 +17,9 @@ jobs:
- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: ⚙️ Prepare Visual Studio
run: '&"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.exe" /RootSuffix Exp /ResetSettings General.vssettings'

- name: Install Cake.Tool
run: dotnet tool install --global Cake.Tool

Expand All @@ -31,7 +34,8 @@ jobs:
corepack install --global [email protected]
dotnet cake
#- name: Tests
# run: |
# cd src
# dotnet cake --target Tests
- name: Tests
run: |
cd src
dotnet cake --target Tests
dotnet test .\Cody.VisualStudio.Tests\bin\Debug\Cody.VisualStudio.Tests.dll -v detailed
10 changes: 5 additions & 5 deletions src/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ Task("Tests")
Verbosity = Verbosity.Minimal
});
DotNetTest("./Cody.VisualStudio.Tests/bin/Debug/Cody.VisualStudio.Tests.dll", new DotNetTestSettings
{
NoBuild = true,
NoRestore = true
});
// DotNetTest("./Cody.VisualStudio.Tests/bin/Debug/Cody.VisualStudio.Tests.dll", new DotNetTestSettings
// {
// NoBuild = true,
// NoRestore = true
// });
});

Task("Restore")
Expand Down

0 comments on commit 2f5b062

Please sign in to comment.