Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- `azure-pipelines.yml`
- Fix linting errors.
- Move from ubuntu-20.04 to ubuntu-latest.
- Remove ModuleBuilder patch.
- Remove install DSC step on Linux.

## [0.13.0] - 2025-02-28

### Removed
Expand Down
41 changes: 8 additions & 33 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ stages:
displayName: 'HQRM'
pool:
vmImage: 'windows-latest'
timeoutInMinutes: 0
timeoutInMinutes: '0'
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifact'
Expand All @@ -86,25 +86,14 @@ stages:
displayName: 'Unit Windows (WPS)'
pool:
vmImage: 'windows-latest'
timeoutInMinutes: 0
timeoutInMinutes: '0'
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifact'
inputs:
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 All @@ -125,13 +114,12 @@ stages:
inputs:
targetPath: '$(buildFolderName)/$(testResultFolderName)/'
artifactName: 'CodeCoverageWindowsWPS'
parallel: true

- job: test_windows_ps
displayName: 'Unit Windows (PS)'
pool:
vmImage: 'windows-latest'
timeoutInMinutes: 0
timeoutInMinutes: '0'
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifact'
Expand Down Expand Up @@ -159,30 +147,19 @@ stages:
inputs:
targetPath: '$(buildFolderName)/$(testResultFolderName)/'
artifactName: 'CodeCoverageWindowsPS'
parallel: true

- job: test_linux
displayName: 'Unit Linux'
pool:
vmImage: 'ubuntu-20.04'
timeoutInMinutes: 0
vmImage: 'ubuntu-latest'
timeoutInMinutes: '0'
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifact'
inputs:
buildType: 'current'
artifactName: $(buildArtifactName)
targetPath: '$(Build.SourcesDirectory)/$(buildFolderName)'
- script: |
wget https://github.com/microsoft/omi/releases/download/v1.6.8-1/omi-1.6.8-1.ssl_110.ulinux.x64.deb
wget https://github.com/microsoft/PowerShell-DSC-for-Linux/releases/download/v1.2.1-0/dsc-1.2.1-0.ssl_100.x64.deb

sudo dpkg -i omi-1.6.8-1.ssl_110.ulinux.x64.deb dsc-1.2.1-0.ssl_100.x64.deb

# This is a fix to the following DSC for Linux issue: https://github.com/microsoft/PowerShell-DSC-for-Linux/issues/674
sudo mv /etc/opt/omi/conf/dsc/configuration/baseregistration /etc/opt/omi/conf/dsc/configuration/BaseRegistration
sudo mv /etc/opt/omi/conf/dsc/configuration/BaseRegistration/baseresource.schema.mof /etc/opt/omi/conf/dsc/configuration/BaseRegistration/BaseResource.schema.mof
displayName: 'Install DSC for Linux'
- task: PowerShell@2
name: test
displayName: 'Run Unit Test'
Expand All @@ -203,13 +180,12 @@ stages:
inputs:
targetPath: '$(buildFolderName)/$(testResultFolderName)/'
artifactName: 'CodeCoverageLinux'
parallel: true

- job: test_macos
displayName: 'Unit macOS'
pool:
vmImage: 'macos-latest'
timeoutInMinutes: 0
timeoutInMinutes: '0'
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifact'
Expand Down Expand Up @@ -237,13 +213,12 @@ stages:
inputs:
targetPath: '$(buildFolderName)/$(testResultFolderName)/'
artifactName: 'CodeCoverageMacOS'
parallel: true

- job: Test_Integration
displayName: 'Integration'
pool:
vmImage: 'windows-latest'
timeoutInMinutes: 0
timeoutInMinutes: '0'
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifact'
Expand Down Expand Up @@ -283,7 +258,7 @@ stages:
condition: succeededOrFailed()
pool:
vmImage: 'ubuntu-latest'
timeoutInMinutes: 0
timeoutInMinutes: '0'
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifact'
Expand Down
Loading