Skip to content

Commit

Permalink
feat: Added matrix name to template increasing readability (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr and eriqua authored Dec 19, 2023
1 parent e4cc957 commit c685098
Show file tree
Hide file tree
Showing 54 changed files with 79 additions and 66 deletions.
25 changes: 19 additions & 6 deletions .github/actions/templates/avm-getModuleTestFiles/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,19 @@ runs:
$testFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose }
# Output values to be accessed by next jobs
$compressedOutput = $testFilePaths | ConvertTo-Json -Compress
if($compressedOutput -notmatch "\[.*\]") {
$compressedOutput = "[$compressedOutput]"
$deployCompressedOutput = $testFilePaths | ForEach-Object {
@{
path = $_
name = Split-Path (Split-Path $_) -Leaf
}
} | ConvertTo-Json -Compress
# Output values to be accessed by next jobs
if($deployCompressedOutput -notmatch "\[.*\]") {
$deployCompressedOutput = "[$deployCompressedOutput]"
}
Write-Verbose "Publishing output: $compressedOutput" -Verbose
Write-Output ('{0}={1}' -f 'moduleTestFilePaths', $compressedOutput) >> $env:GITHUB_OUTPUT
Write-Verbose "Publishing output: $deployCompressedOutput" -Verbose
Write-Output ('{0}={1}' -f 'moduleTestFilePaths', $deployCompressedOutput) >> $env:GITHUB_OUTPUT
Write-Output '::endgroup::'
Expand All @@ -56,7 +63,13 @@ runs:
$psRuleTestFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose }
# Output values to be accessed by next jobs
$psRuleCompressedOutput = $psRuleTestFilePaths | ConvertTo-Json -Compress
$psRuleCompressedOutput = $psRuleTestFilePaths | ForEach-Object {
@{
path = $_
name = Split-Path (Split-Path $_) -Leaf
}
} | ConvertTo-Json -Compress
if($psRuleCompressedOutput -notmatch "\[.*\]") {
$psRuleCompressedOutput = "[$psRuleCompressedOutput]"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.api-management.service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.batch.batch-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.cognitive-services.account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.compute.ssh-public-key.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.data-factory.factory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.document-db.database-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.event-grid.domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.event-grid.system-topic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.event-grid.topic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.insights.action-group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.insights.activity-log-alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.insights.component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.insights.diagnostic-setting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.insights.metric-alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.insights.webtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.key-vault.vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.logic.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.bastion-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.dns-resolver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.dns-zone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.load-balancer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.network-interface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.private-dns-zone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.private-endpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.public-ip-address.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.public-ip-prefix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.network.route-table.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Module"
name: "Run"
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
Expand Down
Loading

0 comments on commit c685098

Please sign in to comment.