|
| 1 | +name: "avm.res.cache.redis-enterprise" |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + staticValidation: |
| 7 | + type: boolean |
| 8 | + description: "Execute static validation" |
| 9 | + required: false |
| 10 | + default: true |
| 11 | + deploymentValidation: |
| 12 | + type: boolean |
| 13 | + description: "Execute deployment validation" |
| 14 | + required: false |
| 15 | + default: true |
| 16 | + removeDeployment: |
| 17 | + type: boolean |
| 18 | + description: "Remove deployed module" |
| 19 | + required: false |
| 20 | + default: true |
| 21 | + customLocation: |
| 22 | + type: string |
| 23 | + description: "Default location overwrite (e.g., eastus)" |
| 24 | + required: false |
| 25 | + push: |
| 26 | + branches: |
| 27 | + - main |
| 28 | + paths: |
| 29 | + - ".github/actions/templates/avm-**" |
| 30 | + - ".github/workflows/avm.template.module.yml" |
| 31 | + - ".github/workflows/avm.res.cache.redis-enterprise.yml" |
| 32 | + - "avm/res/cache/redis-enterprise/**" |
| 33 | + - "utilities/pipelines/**" |
| 34 | + - "!utilities/pipelines/platform/**" |
| 35 | + - "!*/**/README.md" |
| 36 | + |
| 37 | +env: |
| 38 | + modulePath: "avm/res/cache/redis-enterprise" |
| 39 | + workflowPath: ".github/workflows/avm.res.cache.redis-enterprise.yml" |
| 40 | + |
| 41 | +concurrency: |
| 42 | + group: ${{ github.workflow }} |
| 43 | + |
| 44 | +jobs: |
| 45 | + ########################### |
| 46 | + # Initialize pipeline # |
| 47 | + ########################### |
| 48 | + job_initialize_pipeline: |
| 49 | + runs-on: ubuntu-latest |
| 50 | + name: "Initialize pipeline" |
| 51 | + steps: |
| 52 | + - name: "Checkout" |
| 53 | + uses: actions/checkout@v4 |
| 54 | + with: |
| 55 | + fetch-depth: 0 |
| 56 | + - name: "Set input parameters to output variables" |
| 57 | + id: get-workflow-param |
| 58 | + uses: ./.github/actions/templates/avm-getWorkflowInput |
| 59 | + with: |
| 60 | + workflowPath: "${{ env.workflowPath}}" |
| 61 | + - name: "Get module test file paths" |
| 62 | + id: get-module-test-file-paths |
| 63 | + uses: ./.github/actions/templates/avm-getModuleTestFiles |
| 64 | + with: |
| 65 | + modulePath: "${{ env.modulePath }}" |
| 66 | + outputs: |
| 67 | + workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} |
| 68 | + moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} |
| 69 | + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} |
| 70 | + modulePath: "${{ env.modulePath }}" |
| 71 | + |
| 72 | + ############################## |
| 73 | + # Call reusable workflow # |
| 74 | + ############################## |
| 75 | + call-workflow-passing-data: |
| 76 | + name: "Run" |
| 77 | + permissions: |
| 78 | + id-token: write # For OIDC |
| 79 | + contents: write # For release tags |
| 80 | + needs: |
| 81 | + - job_initialize_pipeline |
| 82 | + uses: ./.github/workflows/avm.template.module.yml |
| 83 | + with: |
| 84 | + workflowInput: "${{ needs.job_initialize_pipeline.outputs.workflowInput }}" |
| 85 | + moduleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}" |
| 86 | + psRuleModuleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}" |
| 87 | + modulePath: "${{ needs.job_initialize_pipeline.outputs.modulePath}}" |
| 88 | + secrets: inherit |
0 commit comments