Skip to content

Commit

Permalink
Update azure-pipelines-cd.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Nov 30, 2023
1 parent 56480c8 commit 0aabd02
Showing 1 changed file with 74 additions and 74 deletions.
148 changes: 74 additions & 74 deletions build/azure-pipelines/azure-pipelines-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,81 +88,81 @@ stages:
moduleName: '$(moduleName)'
EsrpCodeSigningServiceName: 'ESRP-MI'

- stage: Test
dependsOn: Build
jobs:
- job: Windows
variables:
skipComponentGovernanceDetection: true
runCodesignValidationInjection: false
pool:
vmImage: 'windows-latest'
steps:
- download: current
artifact: '$(artifactModuleSigned)'
- task: PowerShell@2
name: ModuleInfo
displayName: 'Get Parameters for PowerShell Module'
inputs:
filePath: '$(System.DefaultWorkingDirectory)/build/Get-PSModuleInfo.ps1'
arguments: '-ModuleManifestPath "$(Pipeline.Workspace)/$(artifactModuleSigned)/*/*.psd1"'
pwsh: true
- template: template-psmodule-test.yml
parameters:
moduleName: '$(ModuleInfo.moduleName)'
artifactInput: '$(artifactModuleSigned)'
PesterConfigurationName: 'CD'
TestWindowsPowershell: true
- task: PSScriptAnalyzer@1
displayName: 'PowerShell Script Analyzer'
inputs:
Path: '$(Pipeline.Workspace)/$(artifactModuleSigned)'
Settings: 'required'
Recurse: true
# - stage: Test
# dependsOn: Build
# jobs:
# - job: Windows
# variables:
# skipComponentGovernanceDetection: true
# runCodesignValidationInjection: false
# pool:
# vmImage: 'windows-latest'
# steps:
# - download: current
# artifact: '$(artifactModuleSigned)'
# - task: PowerShell@2
# name: ModuleInfo
# displayName: 'Get Parameters for PowerShell Module'
# inputs:
# filePath: '$(System.DefaultWorkingDirectory)/build/Get-PSModuleInfo.ps1'
# arguments: '-ModuleManifestPath "$(Pipeline.Workspace)/$(artifactModuleSigned)/*/*.psd1"'
# pwsh: true
# - template: template-psmodule-test.yml
# parameters:
# moduleName: '$(ModuleInfo.moduleName)'
# artifactInput: '$(artifactModuleSigned)'
# PesterConfigurationName: 'CD'
# TestWindowsPowershell: true
# - task: PSScriptAnalyzer@1
# displayName: 'PowerShell Script Analyzer'
# inputs:
# Path: '$(Pipeline.Workspace)/$(artifactModuleSigned)'
# Settings: 'required'
# Recurse: true

- job: Ubuntu
variables:
skipComponentGovernanceDetection: true
runCodesignValidationInjection: false
pool:
vmImage: 'ubuntu-latest'
steps:
- download: current
artifact: '$(artifactModuleSigned)'
- task: PowerShell@2
name: ModuleInfo
displayName: 'Get Parameters for PowerShell Module'
inputs:
filePath: '$(System.DefaultWorkingDirectory)/build/Get-PSModuleInfo.ps1'
arguments: '-ModuleManifestPath "$(Pipeline.Workspace)/$(artifactModuleSigned)/*/*.psd1"'
pwsh: true
- template: template-psmodule-test.yml
parameters:
moduleName: '$(ModuleInfo.moduleName)'
artifactInput: '$(artifactModuleSigned)'
PesterConfigurationName: 'CD'
# - job: Ubuntu
# variables:
# skipComponentGovernanceDetection: true
# runCodesignValidationInjection: false
# pool:
# vmImage: 'ubuntu-latest'
# steps:
# - download: current
# artifact: '$(artifactModuleSigned)'
# - task: PowerShell@2
# name: ModuleInfo
# displayName: 'Get Parameters for PowerShell Module'
# inputs:
# filePath: '$(System.DefaultWorkingDirectory)/build/Get-PSModuleInfo.ps1'
# arguments: '-ModuleManifestPath "$(Pipeline.Workspace)/$(artifactModuleSigned)/*/*.psd1"'
# pwsh: true
# - template: template-psmodule-test.yml
# parameters:
# moduleName: '$(ModuleInfo.moduleName)'
# artifactInput: '$(artifactModuleSigned)'
# PesterConfigurationName: 'CD'

- job: MacOS
variables:
skipComponentGovernanceDetection: true
runCodesignValidationInjection: false
pool:
vmImage: 'macOS-latest'
steps:
- download: current
artifact: '$(artifactModuleSigned)'
- task: PowerShell@2
name: ModuleInfo
displayName: 'Get Parameters for PowerShell Module'
inputs:
filePath: '$(System.DefaultWorkingDirectory)/build/Get-PSModuleInfo.ps1'
arguments: '-ModuleManifestPath "$(Pipeline.Workspace)/$(artifactModuleSigned)/*/*.psd1"'
pwsh: true
- template: template-psmodule-test.yml
parameters:
moduleName: '$(ModuleInfo.moduleName)'
artifactInput: '$(artifactModuleSigned)'
PesterConfigurationName: 'CD'
# - job: MacOS
# variables:
# skipComponentGovernanceDetection: true
# runCodesignValidationInjection: false
# pool:
# vmImage: 'macOS-latest'
# steps:
# - download: current
# artifact: '$(artifactModuleSigned)'
# - task: PowerShell@2
# name: ModuleInfo
# displayName: 'Get Parameters for PowerShell Module'
# inputs:
# filePath: '$(System.DefaultWorkingDirectory)/build/Get-PSModuleInfo.ps1'
# arguments: '-ModuleManifestPath "$(Pipeline.Workspace)/$(artifactModuleSigned)/*/*.psd1"'
# pwsh: true
# - template: template-psmodule-test.yml
# parameters:
# moduleName: '$(ModuleInfo.moduleName)'
# artifactInput: '$(artifactModuleSigned)'
# PesterConfigurationName: 'CD'

- stage: Package
displayName: 'Standalone Package'
Expand Down Expand Up @@ -282,7 +282,7 @@ stages:
displayName: 'Create Release on GitHub'
condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'main'))
inputs:
gitHubConnection: 'MSIdentity'
gitHubConnection: 'MSIdentityTools'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
Expand Down

0 comments on commit 0aabd02

Please sign in to comment.