Skip to content

Commit b0b3196

Browse files
update workflows to only build PSDropbin's csproj, not test proj
1 parent ed2ec94 commit b0b3196

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/Deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
foreach ($module in $modules) {
3939
if ($module.FullName -match $powerShellDropboxProviderModuleName){
4040
Write-Host "$($powerShellDropboxProviderModuleName) module was changed. Building latest version..."
41-
$solutionPath = Join-Path $module.FullName "$($powerShellDropboxProviderModuleName).sln"
41+
$solutionPath = Join-Path $module.FullName "IntelliTect.$($powerShellDropboxProviderModuleName)" "IntelliTect.$($powerShellDropboxProviderModuleName).csproj"
4242
dotnet build $solutionPath
4343
break
4444
}

.github/workflows/PullRequest.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,16 @@ jobs:
3030
run: |
3131
$items = Get-ChildItem -Include *.sln -Recurse
3232
foreach ($item in $items){
33+
if ($item -notmatch 'PSDropBin'){
3334
dotnet build $item
35+
}
36+
}
37+
#build PSDropBin.csproj only (not entire solution as test proj won't build)
38+
$items = Get-ChildItem -Include *.csproj -Recurse
39+
foreach ($item in $items){
40+
if ($item -match 'PSDropBin'){
41+
dotnet build $item
42+
}
3443
}
3544
- name: DotNet Test
3645
run: |

Modules/IntelliTect.PSDropbin/PSDropBin.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Global
2525
{D2C43456-1BFA-4539-9F4A-C08B3D85B327}.Release|Any CPU.ActiveCfg = Release|Any CPU
2626
{D2C43456-1BFA-4539-9F4A-C08B3D85B327}.Release|Any CPU.Build.0 = Release|Any CPU
2727
{3AE70642-216F-4669-84FF-C4C003082CBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28+
{3AE70642-216F-4669-84FF-C4C003082CBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
2829
{3AE70642-216F-4669-84FF-C4C003082CBC}.Release|Any CPU.ActiveCfg = Release|Any CPU
2930
{3AE70642-216F-4669-84FF-C4C003082CBC}.Release|Any CPU.Build.0 = Release|Any CPU
3031
EndGlobalSection

0 commit comments

Comments
 (0)