Skip to content

Commit

Permalink
CI: Test on powershell.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejKafka committed Apr 3, 2024
1 parent be91411 commit 09474da
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,30 @@ jobs:
run: dotnet test --no-restore Pog.Tests

# install a few Pog packages to check that Pog works
- name: Test Pog packages
- name: Test Pog packages (PowerShell Core)
shell: pwsh
run: |
Write-Host "PowerShell v$($PSVersionTable.PSVersion)"
$InformationPreference = "Continue"
Import-Module ./app/Pog -Verbose
Write-Host "Available packages: $(@(Get-PogRepositoryPackage -AllVersions).Count)"
pog fzf, zstd, Jujutsu
Get-PogPackage
Write-Host ""
Write-Host "fzf: $(fzf --version)"
Write-Host "zstd: $(zstd --version)"
Write-Host "Jujutsu: $(jj --version)"
Uninstall-Pog fzf, zstd, Jujutsu
# the same test in PowerShell 5, to test compatibility
- name: Test Pog packages (PowerShell 5)
shell: powershell
run: |
Write-Host "PowerShell v$($PSVersionTable.PSVersion)"
$InformationPreference = "Continue"
Import-Module ./app/Pog -Verbose
Expand All @@ -90,4 +112,6 @@ jobs:
Write-Host ""
Write-Host "fzf: $(fzf --version)"
Write-Host "zstd: $(zstd --version)"
Write-Host "Jujutsu: $(jj --version)"
Write-Host "Jujutsu: $(jj --version)"
Uninstall-Pog fzf, zstd, Jujutsu

0 comments on commit 09474da

Please sign in to comment.