Skip to content

Commit

Permalink
vnet poc
Browse files Browse the repository at this point in the history
  • Loading branch information
eriqua committed Nov 30, 2023
1 parent b4098b7 commit 4c611d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/actions/templates/avm-getModuleTestFiles/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ outputs:
runs:
using: "composite"
steps:
- name: "Get parameter file paths"
- name: "Get module test file paths"
id: get-module-test-file-paths
shell: pwsh
run: |
# Grouping task logs
Write-Output '::group::Get all test files'
# Load used functions
# Get the list of parameter file paths
$moduleFolderPath = Join-Path $env:GITHUB_WORKSPACE '${{ inputs.modulePath }}'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/avm.res.network.virtual-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
outputs:
workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }}
moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }}
psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }}
modulePath: "${{ env.modulePath }}"

##############################
Expand All @@ -77,5 +78,6 @@ jobs:
with:
workflowInput: "${{ needs.job_initialize_pipeline.outputs.workflowInput }}"
moduleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}"
psRuleModuleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}"
modulePath: "${{ needs.job_initialize_pipeline.outputs.modulePath}}"
secrets: inherit
8 changes: 6 additions & 2 deletions .github/workflows/avm.template.module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
type: string
description: "List of relative path to the module test files in JSON format"
required: true
psRuleModuleTestFilePaths:
type: string
description: "List of relative path to the PSRule module test files in JSON format"
required: true
modulePath:
type: string
description: "Relative path to the module folder"
Expand Down Expand Up @@ -56,7 +60,7 @@ jobs:
strategy:
fail-fast: false
matrix:
moduleTestFilePaths: ${{ fromJson(inputs.moduleTestFilePaths) }}
psRuleModuleTestFilePaths: ${{ fromJson(inputs.psRuleModuleTestFilePaths) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -65,7 +69,7 @@ jobs:
- name: Set PSRule validation
uses: ./.github/actions/templates/avm-validateModulePSRule
with:
templateFilePath: "${{ inputs.modulePath }}/${{ matrix.moduleTestFilePaths }}"
templateFilePath: "${{ inputs.modulePath }}/${{ matrix.psRuleModuleTestFilePaths }}"
subscriptionId: "${{ secrets.ARM_SUBSCRIPTION_ID }}"
managementGroupId: "${{ secrets.ARM_MGMTGROUP_ID }}"
psrulePath: "avm/utilities/pipelines/staticValidation/psrule" #'${{ github.workspace }}/avm'
Expand Down

0 comments on commit 4c611d2

Please sign in to comment.