mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
[Windows] Add yamllint support for the default Python version only (#1320)
* Add yamllint support * fix yamllint verion output * move yamllint to the Tools section
This commit is contained in:
committed by
GitHub
parent
1f7bfc8b3c
commit
affa6b1297
@@ -339,7 +339,8 @@
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Install-Toolset.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1"
|
||||
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Install-YAMLLint.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -314,7 +314,8 @@
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Install-Toolset.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1"
|
||||
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Install-YAMLLint.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
3
images/win/scripts/Installers/Install-YAMLLint.ps1
Normal file
3
images/win/scripts/Installers/Install-YAMLLint.ps1
Normal file
@@ -0,0 +1,3 @@
|
||||
pip install yamllint
|
||||
|
||||
Invoke-PesterTests -TestFile "Tools" -TestName "yamllint"
|
||||
@@ -270,3 +270,7 @@ function Get-PacmanVersion {
|
||||
$pacmanVersion = $matches[0]
|
||||
return "- Pacman $pacmanVersion"
|
||||
}
|
||||
|
||||
function Get-YAMLLintVersion {
|
||||
yamllint --version
|
||||
}
|
||||
@@ -98,7 +98,8 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-WinAppDriver),
|
||||
(Get-ZstdVersion),
|
||||
(Get-VSWhereVersion),
|
||||
(Get-7zipVersion)
|
||||
(Get-7zipVersion),
|
||||
(Get-YAMLLintVersion)
|
||||
)
|
||||
|
||||
$markdown += New-MDHeader "CLI Tools" -Level 3
|
||||
|
||||
@@ -247,6 +247,12 @@ Describe "ServiceFabricSDK" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "yamllint" {
|
||||
It "yamllint" {
|
||||
"yamllint --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Svn" {
|
||||
It "svn" {
|
||||
"svn --version --quiet" | Should -ReturnZeroExitCode
|
||||
|
||||
Reference in New Issue
Block a user