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 f872c3e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,28 @@ 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)"
# 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 Down

0 comments on commit f872c3e

Please sign in to comment.