Skip to content

Commit

Permalink
Update pester-test-demo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gweinjc committed Aug 2, 2023
1 parent 5320283 commit d35eb37
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pester-test-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,42 @@ jobs:
Install-Module -Name JumpCloud.SDK.V2 -Force
Install-Module -Name JumpCloud.SDK.DirectoryInsights -Force
Import-Module "./PowerShell/JumpCloud Module/JumpCloud.psd1"
Connect-JConline ${{ secrets.XAPIKEY_PESTER }} -Force
$matrixOS = "${{ matrix.os }}"
switch ($matrixOS) {
ubuntu-latest {
Invoke-Pester -Path "./PowerShell/JumpCloud Module/Tests/Public/Users/Get-JCUser.tests.ps1"
}
macos-latest {
Invoke-Pester -Path "./PowerShell/JumpCloud Module/Tests/Public/Users/Get-JCUser.tests.ps1"
}
windows-latest {
Invoke-Pester -Path "./PowerShell/JumpCloud Module/Tests/Public/Users/Get-JCUser.tests.ps1"
}
}
shell: pwsh
Get-JCUsers2-Test:
needs: setup-pester-environment
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 90
steps:
- uses: actions/checkout@v2
- name: Get-JCUsers Tests (pwsh)
env:
XAPIKEY_PESTER: ${{ secrets.XAPIKEY_PESTER }}
run: |
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor
Set-PSRepository psgallery -InstallationPolicy trusted
Install-Module -Name Pester -RequiredVersion 5.0.4 -confirm:$false -Force
Install-Module -Name JumpCloud.SDK.V1 -Force
Install-Module -Name JumpCloud.SDK.V2 -Force
Install-Module -Name JumpCloud.SDK.DirectoryInsights -Force
Import-Module "./PowerShell/JumpCloud Module/JumpCloud.psd1"
Connect-JConline ${{ secrets.XAPIKEY_PESTER }} -Force
$matrixOS = "${{ matrix.os }}"
switch ($matrixOS) {
ubuntu-latest {
Expand Down

0 comments on commit d35eb37

Please sign in to comment.