Родитель
2aeb2190fb
Коммит
5ffa001f9e
|
@ -2,6 +2,12 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
What's changed since v0.1.0:
|
||||
|
||||
- Engineering:
|
||||
- Bump PSRule dependency to v1.2.0. [#61](https://github.com/microsoft/PSRule.Rules.CAF/issues/61)
|
||||
- Bump PSRule.Rules.Azure dependency to v1.2.0. [#61](https://github.com/microsoft/PSRule.Rules.CAF/issues/61)
|
||||
|
||||
## v0.1.0
|
||||
|
||||
- Initial release.
|
||||
|
|
|
@ -108,10 +108,10 @@ task VersionModule ModuleDependencies, {
|
|||
$manifest = Test-ModuleManifest -Path $manifestPath;
|
||||
$requiredModules = $manifest.RequiredModules | ForEach-Object -Process {
|
||||
if ($_.Name -eq 'PSRule' -and $Configuration -eq 'Release') {
|
||||
@{ ModuleName = 'PSRule'; ModuleVersion = '1.0.1' }
|
||||
@{ ModuleName = 'PSRule'; ModuleVersion = '1.2.0' }
|
||||
}
|
||||
elseif ($_.Name -eq 'PSRule.Rules.Azure' -and $Configuration -eq 'Release') {
|
||||
@{ ModuleName = 'PSRule.Rules.Azure'; ModuleVersion = '0.19.0' }
|
||||
@{ ModuleName = 'PSRule.Rules.Azure'; ModuleVersion = '1.2.0' }
|
||||
}
|
||||
else {
|
||||
@{ ModuleName = $_.Name; ModuleVersion = $_.Version }
|
||||
|
@ -161,19 +161,19 @@ task PSScriptAnalyzer NuGet, {
|
|||
|
||||
# Synopsis: Install PSRule
|
||||
task PSRule NuGet, {
|
||||
if ($Null -eq (Get-InstalledModule -Name PSRule -MinimumVersion 1.0.1 -ErrorAction Ignore)) {
|
||||
Install-Module -Name PSRule -Repository PSGallery -MinimumVersion 1.0.1 -Scope CurrentUser -Force;
|
||||
if ($Null -eq (Get-InstalledModule -Name PSRule -MinimumVersion 1.2.0 -ErrorAction Ignore)) {
|
||||
Install-Module -Name PSRule -Repository PSGallery -MinimumVersion 1.2.0 -Scope CurrentUser -Force;
|
||||
}
|
||||
if ($Null -eq (Get-InstalledModule -Name PSRule.Rules.Azure -MinimumVersion 0.19.0 -ErrorAction Ignore)) {
|
||||
Install-Module -Name PSRule.Rules.Azure -Repository PSGallery -MinimumVersion 0.19.0 -Scope CurrentUser -Force;
|
||||
if ($Null -eq (Get-InstalledModule -Name PSRule.Rules.Azure -MinimumVersion 1.2.0 -ErrorAction Ignore)) {
|
||||
Install-Module -Name PSRule.Rules.Azure -Repository PSGallery -MinimumVersion 1.2.0 -Scope CurrentUser -Force;
|
||||
}
|
||||
Import-Module -Name PSRule.Rules.Azure -Verbose:$False;
|
||||
}
|
||||
|
||||
# Synopsis: Install PSDocs
|
||||
task PSDocs NuGet, {
|
||||
if ($Null -eq (Get-InstalledModule -Name PSDocs -MinimumVersion 0.6.3 -ErrorAction Ignore)) {
|
||||
Install-Module -Name PSDocs -Repository PSGallery -MinimumVersion 0.6.3 -Scope CurrentUser -Force;
|
||||
if ($Null -eq (Get-InstalledModule -Name PSDocs -MinimumVersion 0.8.0 -ErrorAction Ignore)) {
|
||||
Install-Module -Name PSDocs -Repository PSGallery -MinimumVersion 0.8.0 -Scope CurrentUser -Force;
|
||||
}
|
||||
Import-Module -Name PSDocs -Verbose:$False;
|
||||
}
|
||||
|
|
|
@ -16,8 +16,8 @@ bugs:
|
|||
url: https://github.com/Microsoft/PSRule.Rules.CAF/issues
|
||||
|
||||
modules:
|
||||
PSRule: ^1.0.1
|
||||
PSRule.Rules.Azure: ^0.19.0
|
||||
PSRule: ^1.2.0
|
||||
PSRule.Rules.Azure: ^1.2.0
|
||||
|
||||
tasks:
|
||||
clear:
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
---
|
||||
# Synopsis: The default baseline for Azure Cloud Adoption Framework
|
||||
apiVersion: github.com/microsoft/PSRule/v1
|
||||
kind: Baseline
|
||||
metadata:
|
||||
name: CAF.Strict
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
---
|
||||
# Synopsis: Configuration for PSRule.Rules.CAF
|
||||
apiVersion: github.com/microsoft/PSRule/v1
|
||||
kind: ModuleConfig
|
||||
metadata:
|
||||
name: PSRule.Rules.CAF
|
||||
|
|
Загрузка…
Ссылка в новой задаче