11name : " ARM template tests"
2-
3- on : [pull_request]
2+ on : [workflow_dispatch, pull_request]
43
54jobs :
65 best-practices-test :
76 name : " ARM template tests using arm-ttk"
87 runs-on : " ubuntu-latest"
8+ strategy :
9+ matrix :
10+ include : # Includes one more job
11+ - file : ' azuredeploy_metrics.json'
12+ dir : ' EventHubs/src'
13+ - file : ' blobreaderdeploy.json'
14+ dir : ' BlockBlobReader/src'
15+ - file : ' blobreaderdeploywithPremiumPlan.json'
16+ dir : ' BlockBlobReader/src'
917 steps :
1018 - name : Checkout repo
1119 uses : actions/checkout@v4
1220
13- - name : Test ARM Templates using arm-ttk
14- id : filestest
15- uses : aliencube/arm-ttk-actions@v0.3
21+ - name : Rename file
22+ run : |
23+ cp ${{ matrix.dir }}/${{ matrix.file }} ${{ matrix.dir }}/mainTemplate.json
24+ cd ${{ matrix.dir }}
25+ find . -maxdepth 1 -type f -name '*.json' ! -name 'mainTemplate.json' -exec rm -f {} +
26+
27+ - uses : microsoft/action-armttk@main
1628 with :
17- path : EventHubs/src/azuredeploy_metrics.json
29+ workdir : ${{ matrix.dir }}
30+ fail_on_error : true
31+ level : " info"
1832
1933 security-test :
2034 name : " ARM template tests using checkov"
2135 runs-on : " ubuntu-latest"
36+ strategy :
37+ matrix :
38+ include : # Includes one more job
39+ - file : ' azuredeploy_metrics.json'
40+ dir : ' EventHubs/src'
41+ - file : ' blobreaderdeploy.json'
42+ dir : ' BlockBlobReader/src'
43+ - file : ' blobreaderdeploywithPremiumPlan.json'
44+ dir : ' BlockBlobReader/src'
2245 steps :
2346 - name : Checkout repo
2447 uses : actions/checkout@v4
2548
26- - name : Test ARM Templates using checkov
27- id : checkov
28- uses : bridgecrewio/checkov-action@v12
49+ - uses : bridgecrewio/checkov-action@master
2950 with :
30- file : EventHubs/src/azuredeploy_metrics.json
51+ file : ${{ matrix.dir }}/${{ matrix.file }}
3152 skip_check : CKV_AZURE_16,CKV_AZURE_17,CKV_AZURE_35
3253 quiet : false
3354 framework : arm
3455 output_format : cli
35- output_bc_ids : true
56+ output_bc_ids : true
0 commit comments