Added starter Azure Pipeline snippet (#852)
This commit is contained in:
Родитель
925c492915
Коммит
6c6a798ea6
|
@ -27,6 +27,9 @@ Continue reading to see the changes included in the latest version.
|
|||
|
||||
What's changed since v2.4.0:
|
||||
|
||||
- General improvements:
|
||||
- Added starter pipeline snippet for Azure Pipelines by @BernieWhite.
|
||||
[#851](https://github.com/microsoft/PSRule-vscode/issues/851)
|
||||
- Engineering:
|
||||
- Bumps vscode engine to v1.71.0.
|
||||
[#843](https://github.com/microsoft/PSRule-vscode/pull/843)
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"preview": true,
|
||||
"activationEvents": [
|
||||
"onLanguage:powershell",
|
||||
"onLanguage:yaml",
|
||||
"workspaceContains:/ps-rule.yaml",
|
||||
"workspaceContains:**/ps-rule.yaml",
|
||||
"workspaceContains:**/*.Rule.yaml",
|
||||
|
@ -221,7 +222,11 @@
|
|||
},
|
||||
{
|
||||
"language": "yaml",
|
||||
"path": "./snippets/github-actions.json"
|
||||
"path": "./snippets/github-snippets.json"
|
||||
},
|
||||
{
|
||||
"language": "yaml",
|
||||
"path": "./snippets/pipelines-snippets.json"
|
||||
},
|
||||
{
|
||||
"language": "json",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"PSRule GitHub Actions workflow": {
|
||||
"PSRule in GitHub Actions workflow": {
|
||||
"prefix": "ps-rule-gh-action",
|
||||
"description": "PSRule workflow snippet for GitHub Actions",
|
||||
"description": "PSRule workflow snippet for GitHub Actions.",
|
||||
"body": [
|
||||
"#",
|
||||
"# Analyze repository with PSRule",
|
||||
|
@ -31,10 +31,10 @@
|
|||
" steps:",
|
||||
"",
|
||||
" - name: Checkout",
|
||||
" uses: actions/checkout@main",
|
||||
" uses: actions/checkout@v3",
|
||||
"",
|
||||
" - name: Run PSRule analysis",
|
||||
" uses: Microsoft/ps-rule@main",
|
||||
" uses: Microsoft/ps-rule@v2.3.2",
|
||||
" with:",
|
||||
" modules: ${1}"
|
||||
]
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"PSRule in Azure Pipelines": {
|
||||
"prefix": "ps-rule-az-pipeline",
|
||||
"description": "PSRule snippet for Azure Pipelines.",
|
||||
"body": [
|
||||
"#",
|
||||
"# Analyze repository with PSRule",
|
||||
"#",
|
||||
"",
|
||||
"# For PSRule documentation see:",
|
||||
"# https://aka.ms/ps-rule",
|
||||
"",
|
||||
"# For action details see:",
|
||||
"# https://aka.ms/ps-rule-action",
|
||||
"",
|
||||
"# Run for main or PRs against main",
|
||||
"trigger:",
|
||||
" branches:",
|
||||
" include:",
|
||||
" - main",
|
||||
"",
|
||||
"pr:",
|
||||
" branches:",
|
||||
" include:",
|
||||
" - main",
|
||||
"",
|
||||
"stages:",
|
||||
"- stage: Test",
|
||||
" jobs:",
|
||||
" - job: analyze",
|
||||
" displayName: Analyze repository",
|
||||
" pool:",
|
||||
" vmImage: ubuntu-latest",
|
||||
" steps:",
|
||||
"",
|
||||
" - task: ps-rule-assert@2",
|
||||
" displayName: Run PSRule analysis",
|
||||
" inputs:",
|
||||
" modules: ${1}",
|
||||
""
|
||||
]
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче