-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipeline.yaml
34 lines (32 loc) · 956 Bytes
/
azure-pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
trigger:
none
pool:
vmImage: ubuntu-latest
stages:
- stage: ValidateIaC
jobs:
- job: ValidateIaC
displayName: Validating IaC with PSRules
steps:
- task: ps-rule-install@2
displayName: "Install PSRule"
inputs:
module: PSRule.Rules.Azure
latest: true
prerelease: false
- task: ps-rule-assert@2
displayName: "Run PSRule Validation"
continueOnError: true
inputs:
inputPath:
modules: 'PSRule.Rules.Azure'
option: 'ps-rule.yaml'
outputFormat: 'NUnit3'
outputPath: 'ps-rule-results.xml'
- task: PublishTestResults@2
displayName: "Publish PSRule results"
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: 'ps-rule-results.xml'
failTaskOnFailedTests: false
testRunTitle: 'PSRule-File'