mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 23:28:57 +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":[
|
"scripts":[
|
||||||
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Toolset.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":[
|
"scripts":[
|
||||||
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Toolset.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]
|
$pacmanVersion = $matches[0]
|
||||||
return "- Pacman $pacmanVersion"
|
return "- Pacman $pacmanVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-YAMLLintVersion {
|
||||||
|
yamllint --version
|
||||||
|
}
|
||||||
@@ -98,7 +98,8 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
|||||||
(Get-WinAppDriver),
|
(Get-WinAppDriver),
|
||||||
(Get-ZstdVersion),
|
(Get-ZstdVersion),
|
||||||
(Get-VSWhereVersion),
|
(Get-VSWhereVersion),
|
||||||
(Get-7zipVersion)
|
(Get-7zipVersion),
|
||||||
|
(Get-YAMLLintVersion)
|
||||||
)
|
)
|
||||||
|
|
||||||
$markdown += New-MDHeader "CLI Tools" -Level 3
|
$markdown += New-MDHeader "CLI Tools" -Level 3
|
||||||
|
|||||||
@@ -247,6 +247,12 @@ Describe "ServiceFabricSDK" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "yamllint" {
|
||||||
|
It "yamllint" {
|
||||||
|
"yamllint --version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Describe "Svn" {
|
Describe "Svn" {
|
||||||
It "svn" {
|
It "svn" {
|
||||||
"svn --version --quiet" | Should -ReturnZeroExitCode
|
"svn --version --quiet" | Should -ReturnZeroExitCode
|
||||||
|
|||||||
Reference in New Issue
Block a user