diff --git a/CHANGELOG.md b/CHANGELOG.md index 56306b1..81d5af2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7cbd112..c450e67 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -59,7 +59,7 @@ stages: displayName: 'HQRM' pool: vmImage: 'windows-latest' - timeoutInMinutes: 0 + timeoutInMinutes: '0' steps: - task: DownloadPipelineArtifact@2 displayName: 'Download Build Artifact' @@ -86,7 +86,7 @@ stages: displayName: 'Unit Windows (WPS)' pool: vmImage: 'windows-latest' - timeoutInMinutes: 0 + timeoutInMinutes: '0' steps: - task: DownloadPipelineArtifact@2 displayName: 'Download Build Artifact' @@ -94,17 +94,6 @@ 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' @@ -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' @@ -159,13 +147,12 @@ 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' @@ -173,16 +160,6 @@ stages: 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' @@ -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' @@ -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' @@ -283,7 +258,7 @@ stages: condition: succeededOrFailed() pool: vmImage: 'ubuntu-latest' - timeoutInMinutes: 0 + timeoutInMinutes: '0' steps: - task: DownloadPipelineArtifact@2 displayName: 'Download Build Artifact'