Update CI pipeline for publishing (#9)

This commit is contained in:
Bernie White 2020-12-28 01:25:37 +10:00 коммит произвёл GitHub
Родитель 639f447c70
Коммит 0fb56f17b0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 26 добавлений и 27 удалений

Просмотреть файл

@ -129,23 +129,23 @@ stages:
- template: jobs/test.yaml
parameters:
name: windows
displayName: 'PowerShell 5.1 - win2016'
imageName: 'vs2017-win2016'
name: windows_2019
displayName: 'PowerShell 7.1 - Windows 2019'
imageName: 'windows-2019'
- template: jobs/testContainer.yaml
parameters:
name: ps_7_ubuntu_18_04
displayName: 'PowerShell 7.0 - ubuntu-18.04'
imageName: mcr.microsoft.com/powershell
imageTag: 7.0.0-ubuntu-18.04
name: alpine_3_10
displayName: 'PowerShell 7.1 - alpine-3.10'
imageName: mcr.microsoft.com/powershell/test-deps
imageTag: alpine-3.10
- template: jobs/testContainer.yaml
parameters:
name: ps_6_ubuntu_18_04
displayName: 'PowerShell 6.2.4 - ubuntu-18.04'
name: ps_7_1_ubuntu_20_04
displayName: 'PowerShell 7.1 - ubuntu-20.04'
imageName: mcr.microsoft.com/powershell
imageTag: 6.2.4-ubuntu-18.04
imageTag: 7.1.0-ubuntu-20.04
# Release pipeline
- stage: Release
@ -180,15 +180,15 @@ stages:
displayName: 'Publish module'
# Update GitHub release
# - task: GitHubRelease@1
# displayName: 'GitHub release'
# inputs:
# gitHubConnection: 'AzureDevOps-PSRule.Rules.MSFT.OSS'
# repositoryName: '$(Build.Repository.Name)'
# action: edit
# tag: '$(Build.SourceBranchName)'
# releaseNotesSource: inline
# releaseNotesInline: 'See [change log](https://github.com/Microsoft/PSRule.Rules.MSFT.OSS/blob/main/CHANGELOG.md)'
# assetUploadMode: replace
# addChangeLog: false
# isPreRelease: $(isPreRelease)
- task: GitHubRelease@1
displayName: 'GitHub release'
inputs:
gitHubConnection: 'AzureDevOps-PSRule.Rules.MSFT.OSS'
repositoryName: '$(Build.Repository.Name)'
action: edit
tag: '$(Build.SourceBranchName)'
releaseNotesSource: inline
releaseNotesInline: 'See [change log](https://github.com/Microsoft/PSRule.Rules.MSFT.OSS/blob/main/CHANGELOG.md)'
assetUploadMode: replace
addChangeLog: false
isPreRelease: $(isPreRelease)

Просмотреть файл

@ -2,11 +2,9 @@
## Prerequisites
- Windows PowerShell 5.1 with .NET Framework 4.7.2+ or
- PowerShell Core 6.2 or greater on Windows, MacOS and Linux or
- PowerShell 7.0 or greater on Windows, MacOS and Linux
- PowerShell 7.1 or greater on Windows, MacOS, and Linux
For a list of platforms that PowerShell 7.0 is supported on [see][get-powershell].
For a list of platforms that PowerShell 7.1 is supported on [see][get-powershell].
The following modules are required for `PSRule.Rules.MSFT.OSS` to work:

Просмотреть файл

@ -232,7 +232,7 @@ task IntegrationTest ModuleDependencies, Pester, {
# Synopsis: Run validation
task Rules PSRule, {
$assertParams = @{
Path = './.ps-rule/'
Path = @('./.ps-rule/', './src/')
Style = $AssertStyle
OutputFormat = 'NUnit3'
ErrorAction = 'Stop'

Просмотреть файл

@ -4,6 +4,7 @@ input:
pathIgnore:
- '**/*.md'
- '**/*.yaml'
- '**/.vscode/'
output:
culture: