Skip to content

Commit

Permalink
case sensitive path
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc committed Nov 8, 2023
1 parent f852d12 commit be1670b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/jcapi-powershell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,14 @@ jobs:
# . /home/runner/work/support/support/PowerShell/Deploy/SdkSync/jcapiToSupportSync.ps1 -RequiredModulesRepo CodeArtifact
# Get functions where 'jcsdk' functions are found
# Private & Public Functions
# print directory paths:
gci ./ -Directory
$pathList = @('Private', 'Public')
# Get matching functions
$functions = $pathList | ForEach-Object {
Get-ChildItem "./support/PowerShell/Jumpcloud Module/$($_)/*.ps1" -Recurse
Get-ChildItem "./support/PowerShell/JumpCloud Module/$($_)/*.ps1" -Recurse
}
$testTags = @()
# For each function file
Expand All @@ -225,7 +229,7 @@ jobs:
if (Select-String -path $file.FullName -Pattern $regex){
# If 'jcsdk' is used in the function file continue
# get test file
$testFile = ($file.FullName -replace "Jumpcloud Module", "Jumpcloud Module/Tests") -replace ".ps1", ".Tests.ps1"
$testFile = ($file.FullName -replace "JumpCloud Module", "JumpCloud Module/Tests") -replace ".ps1", ".Tests.ps1"
$tagRegex = [regex]'-Tag:\(.(\w+).\)'
$testTag = Select-String -path $testFile -Pattern $tagRegex
# "$test"
Expand All @@ -241,5 +245,5 @@ jobs:
# At this time only associations need to be added:
$tags += 'JCAssociation'
# Invoke Pester
. "./support/PowerShell/Jumpcloud Module/Tests/InvokePester.ps1" -JumpCloudApiKey $env:PESTER_APIKEY -ExcludeTagList:('MSP') -IncludeTagList:($tags) -RequiredModulesRepo:('PSGallery')
. "./support/PowerShell/JumpCloud Module/Tests/InvokePester.ps1" -JumpCloudApiKey $env:PESTER_APIKEY -ExcludeTagList:('MSP') -IncludeTagList:($tags) -RequiredModulesRepo:('PSGallery')

0 comments on commit be1670b

Please sign in to comment.