Skip to content

Commit

Permalink
Fix pipeline issues on Windows PowerShell (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju authored Feb 28, 2025
1 parent 04ce853 commit 32b7f6f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix Dockerfile to include GitVersion alias for PowerShell Extension profile script.
- Fix `.vscode/settings.json` file to exclude unrecognized words.
- Fix pipeline issues on Windows PowerShell due to the issue https://github.com/PoshCode/ModuleBuilder/pull/136.


## [0.12.5] - 2024-08-14

Expand Down
11 changes: 11 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ stages:
buildType: 'current'
artifactName: $(buildArtifactName)
targetPath: '$(Build.SourcesDirectory)/$(buildFolderName)'
# This is a workaround for the issue: https://github.com/PoshCode/ModuleBuilder/pull/136
- task: PowerShell@2
name: patch_module
displayName: 'Patch module ModuleBuilder'
inputs:
targetType: 'inline'
script: |
./build.ps1 -Task noop
Install-PSResource -Name 'Viscalyx.Common' -Repository 'PSGallery' -TrustRepository -Quiet -Confirm:$false
Install-ModulePatch -Uri 'https://raw.githubusercontent.com/viscalyx/Viscalyx.Common/refs/heads/main/patches/ModuleBuilder_3.1.7_patch.json' -Force
pwsh: true
- task: PowerShell@2
name: test
displayName: 'Run Unit Test'
Expand Down

0 comments on commit 32b7f6f

Please sign in to comment.