Skip to content

Commit

Permalink
path and test module after build
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc committed Nov 8, 2023
1 parent 341471c commit 0b8da6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/jcapi-powershell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
path: /home/runner/work/jcapi-powershell/jcapi-powershell/SDKs/PowerShell/${{ matrix.SDKName }}.zip
retention-days: 1
Test-SDK:
needs: ["Setup-Build-Dependancies", "Build-SDK"]
needs: ["Setup-Build-Dependancies", "Build-SDK", "Invoke-Pester"]
runs-on: ubuntu-latest
timeout-minutes: 70
strategy:
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
./Test-Module.ps1 -JCApiKey:($env:PESTER_APIKEY) -JCOrgId:($env:PESTER_ORGID) -JCApiKeyMTP:($env:PESTER_MSP_APIKEY) -JCProviderId:($env:PESTER_PROVIDERID) -ExcludeTagList:("MTP") -IncludeTagList:("*") -testModulePath:("./SDKs/PowerShell/${{ matrix.SDKName }}/test-module.ps1")
Test-SDK-MTP:
needs: ["Setup-Build-Dependancies", "Build-SDK"]
needs: ["Setup-Build-Dependancies", "Build-SDK", "Invoke-Pester"]
runs-on: ubuntu-latest
timeout-minutes: 70
strategy:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
$ErrorActionnPreference = 'Stop'
./Test-Module.ps1 -JCApiKey:($env:PESTER_APIKEY) -JCOrgId:($env:PESTER_ORGID) -JCApiKeyMTP:($env:PESTER_MSP_APIKEY) -JCProviderId:($env:PESTER_PROVIDERID) -ExcludeTagList:("None") -IncludeTagList:("MTP") -testModulePath:("./SDKs/PowerShell/${{ matrix.SDKName }}/test-module.ps1")
Invoke-Pester:
needs: ["Setup-Build-Dependancies", "Build-SDK", "Test-SDK"]
needs: ["Setup-Build-Dependancies", "Build-SDK"]
runs-on: ubuntu-latest
timeout-minutes: 70
steps:
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
$pathList = @('Private', 'Public')
# Get matching functions
$functions = $pathList | ForEach-Object {
Get-ChildItem "/home/runner/work/jcapi-powershell/jcapi-powershell/support/PowerShellJumpcloud Module/$($_)/*.ps1" -Recurse
Get-ChildItem "/home/runner/work/jcapi-powershell/jcapi-powershell/support/PowerShell/Jumpcloud Module/$($_)/*.ps1" -Recurse
}
$testTags = @()
# For each function file
Expand Down

0 comments on commit 0b8da6c

Please sign in to comment.