forked from sdkman/posh-gvm
-
Notifications
You must be signed in to change notification settings - Fork 2
try on pwsh #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
try on pwsh #61
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
c19f403
try on pwsh
ronnypolley 9bdb71b
update pester version
ronnypolley 50aaa8a
try without mac os
ronnypolley 5347ae7
try using my own random files
ronnypolley d00af9f
use backslash
ronnypolley 619041e
debug env
ronnypolley 63513de
use .net method to get temp path
ronnypolley 33024fd
debug folder creation
ronnypolley 9188103
need -Force for hidden folders
ronnypolley 87e16e0
do not fail fast
ronnypolley 8edfcd5
print out env
ronnypolley 82ca43e
need a force delete
ronnypolley b493ea3
change get-item().delete to remove-item
ronnypolley 3bb8952
add a test around the link
ronnypolley 731f971
change handling of links on non windows platforms
ronnypolley 2c801d8
can not use $isWindows
ronnypolley c751acb
use $env:OS for determining windows
ronnypolley 7339b58
use force for finding hidden path
ronnypolley 9bb7704
use new-item to create symlink
ronnypolley 17145d9
revert old "if" change
ronnypolley dedec90
remove unused -force
ronnypolley 1b77976
use new-item for linking
ronnypolley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
name: Pester | ||
on: [push, pull_request, workflow_dispatch] | ||
jobs: | ||
# test-pwsh: | ||
# strategy: | ||
# matrix: | ||
# platform: [ubuntu-latest, macos-latest, windows-latest] | ||
# runs-on: ${{ matrix.platform }} | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Run Pester tests (pwsh) | ||
# run: | | ||
# Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor | ||
# Install-Module -Name Pester -RequiredVersion 5.2.2 -Confirm:$false -Force | ||
# Set-Location -Path .\Tests\ | ||
# Invoke-Pester | ||
# if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1} | ||
# shell: pwsh | ||
test-pwsh: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run Pester tests (pwsh) | ||
run: | | ||
dir env: | ||
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor | ||
Install-Module -Name Pester -RequiredVersion 5.6.1 -Confirm:$false -Force | ||
Set-Location -Path .\Tests\ | ||
Invoke-Pester | ||
if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1} | ||
shell: pwsh | ||
|
||
test-posh: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run Pester tests (PowerShell) | ||
run: | | ||
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor | ||
Install-Module -Name Pester -RequiredVersion 5.6.1 -Confirm:$false -Force | ||
$pesterConfig = New-PesterConfiguration | ||
$pesterConfig.CodeCoverage.Enabled = $true | ||
Set-Location -Path .\Tests\ | ||
Invoke-Pester -Configuration $pesterConfig | ||
if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1} | ||
shell: powershell | ||
test-posh: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run Pester tests (PowerShell) | ||
run: | | ||
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor | ||
Install-Module -Name Pester -RequiredVersion 5.6.1 -Confirm:$false -Force | ||
$pesterConfig = New-PesterConfiguration | ||
$pesterConfig.CodeCoverage.Enabled = $true | ||
Set-Location -Path .\Tests\ | ||
Invoke-Pester -Configuration $pesterConfig | ||
if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1} | ||
shell: powershell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.