Bump Microsoft/ps-rule from 2.1.0 to 2.6.0 (#73)

* Bump Microsoft/ps-rule from 2.1.0 to 2.6.0

Bumps [Microsoft/ps-rule](https://github.com/Microsoft/ps-rule) from 2.1.0 to 2.6.0.
- [Release notes](https://github.com/Microsoft/ps-rule/releases)
- [Changelog](https://github.com/microsoft/ps-rule/blob/main/docs/CHANGELOG-v2.md)
- [Commits](https://github.com/Microsoft/ps-rule/compare/v2.1.0...v2.6.0)

---
updated-dependencies:
- dependency-name: Microsoft/ps-rule
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update CI pipeline images

* Fix tests

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bernie White <bewhite@microsoft.com>
This commit is contained in:
dependabot[bot] 2022-12-03 00:11:02 +10:00 коммит произвёл GitHub
Родитель 3fe918b4e2
Коммит 184a73f9bc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 19 добавлений и 26 удалений

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

@ -5,7 +5,7 @@ variables:
version: '0.3.0'
buildConfiguration: 'Release'
disable.coverage.autogenerate: 'true'
imageName: 'ubuntu-20.04'
imageName: 'ubuntu-22.04'
# Use build number format, i.e. 0.3.0-B2205001
name: $(version)-B$(date:yyMM)$(rev:rrr)
@ -70,7 +70,7 @@ stages:
- job: Secret_Scan
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
displayName: Secret scan
steps:
@ -97,8 +97,8 @@ stages:
- template: jobs/test.yaml
parameters:
name: ubuntu_20_04_coverage
imageName: 'ubuntu-20.04'
name: ubuntu_22_04_coverage
imageName: 'ubuntu-22.04'
displayName: 'PowerShell coverage'
coverage: 'true'
platform: linux
@ -106,39 +106,32 @@ stages:
- template: jobs/test.yaml
parameters:
name: macOS_10_15
displayName: 'PowerShell 7.1 - macOS-10.15'
imageName: 'macOS-10.15'
name: macOS_12
displayName: 'PowerShell 7.2 - macOS-12'
imageName: 'macos-12'
platform: macos
- template: jobs/test.yaml
parameters:
name: ps_5_1_windows_2019
displayName: 'PowerShell 5.1 - Windows 2019'
imageName: 'windows-2019'
name: ps_5_1_windows_2022
displayName: 'PowerShell 5.1 - Windows 2022'
imageName: 'windows-2022'
platform: windows
pwsh: 'false'
- template: jobs/test.yaml
parameters:
name: ps_7_2_windows_2019
displayName: 'PowerShell 7.2 - Windows 2019'
imageName: 'windows-2019'
name: ps_7_2_windows_2022
displayName: 'PowerShell 7.2 - Windows 2022'
imageName: 'windows-2022'
platform: windows
- template: jobs/testContainer.yaml
parameters:
name: ps_7_2_ubuntu_18_04
displayName: 'PowerShell 7.2 - ubuntu-18.04'
name: ps_7_2_ubuntu_22_04
displayName: 'PowerShell 7.2 - ubuntu-22.04'
imageName: mcr.microsoft.com/powershell
imageTag: 7.2.0-ubuntu-18.04
- template: jobs/testContainer.yaml
parameters:
name: ps_7_2_ubuntu_20_04
displayName: 'PowerShell 7.2 - ubuntu-20.04'
imageName: mcr.microsoft.com/powershell
imageTag: 7.2.0-ubuntu-20.04
imageTag: 7.2-ubuntu-22.04
# Release pipeline
- stage: Release

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

@ -5,7 +5,7 @@ parameters:
name: ''
displayName: ''
buildConfiguration: 'Release'
vmImage: 'ubuntu-20.04'
vmImage: 'ubuntu-22.04'
imageName: ''
imageTag: ''
coverage: 'false'

2
.github/workflows/analyze.yaml поставляемый
Просмотреть файл

@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v3
- name: Run PSRule analysis
uses: Microsoft/ps-rule@v2.1.0
uses: microsoft/ps-rule@v2.6.0
with:
modules: 'PSRule.Rules.MSFT.OSS'
prerelease: true

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

@ -39,7 +39,7 @@ Describe 'Rule quality' {
$rule.Description | Should -Not -BeNullOrEmpty;
$rule.Info.Annotations.category | Should -Not -BeNullOrEmpty;
$rule.Info.Annotations.severity | Should -Not -BeNullOrEmpty;
$rule.Info.GetOnlineHelpUri() | Should -Not -BeNullOrEmpty;
$rule.Info.Annotations.'online version' | Should -Not -BeNullOrEmpty;
}
}
}