Skip to content

Commit

Permalink
add sub scope tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseloudon committed Oct 3, 2021
1 parent 87596b7 commit eb09a26
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 4 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/Bicep-CD-Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
files: '**/*.bicep'

Bicep-CD-Tests:
Bicep-CD-Tests-MG-Scope:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -52,4 +52,31 @@ jobs:
uses: azure/CLI@v1
with:
inlineScript: |
az deployment mg create -f ./Bicep/modules/mg_main.bicep -l australiaeast -m PRODUCTION -p ./Bicep/modules/mg_main_params.json
az deployment mg create -f ./Bicep/modules/mg_main.bicep -l australiaeast -m PRODUCTION -p ./Bicep/modules/mg_main_params.json
Bicep-CD-Tests-Sub-Scope:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_PROD }}
- name: Bicep CD
id: bicepCD
continue-on-error: true
uses: azure/CLI@v1
with:
inlineScript: |
az deployment sub create -f ./Bicep/modules/sub_main.bicep -l australiaeast -p ./Bicep/modules/sub_main_params.json --what-if
- name: Sleep for 30s
if: ${{ steps.bicepCD.outcome == 'failure' && steps.bicepCD.conclusion == 'success' }}
uses: juliangruber/sleep-action@v1
with:
time: 30s
- name: Bicep CD Retry
if: ${{ steps.bicepCI.outcome == 'failure' && steps.bicepCD.conclusion == 'success' }}
uses: azure/CLI@v1
with:
inlineScript: |
az deployment sub create -f ./Bicep/modules/sub_main.bicep -l australiaeast -p ./Bicep/modules/sub_main_params.json --what-if
31 changes: 29 additions & 2 deletions .github/workflows/Bicep-CI-Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
files: '**/*.bicep'

Bicep-CI-Tests:
Bicep-CI-Tests-MG-Scope:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -50,4 +50,31 @@ jobs:
uses: azure/CLI@v1
with:
inlineScript: |
az deployment mg create -f ./Bicep/modules/mg_main.bicep -l australiaeast -m PRODUCTION -p ./Bicep/modules/mg_main_params.json --what-if
az deployment mg create -f ./Bicep/modules/mg_main.bicep -l australiaeast -m PRODUCTION -p ./Bicep/modules/mg_main_params.json --what-if
Bicep-CI-Tests-Sub-Scope:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_PROD }}
- name: Bicep CI Tests
id: bicepCI
continue-on-error: true
uses: azure/CLI@v1
with:
inlineScript: |
az deployment sub create -f ./Bicep/modules/sub_main.bicep -l australiaeast -p ./Bicep/modules/sub_main_params.json --what-if
- name: Sleep for 30s
if: ${{ steps.bicepCI.outcome == 'failure' && steps.bicepCI.conclusion == 'success' }}
uses: juliangruber/sleep-action@v1
with:
time: 30s
- name: Bicep CI Retry
if: ${{ steps.bicepCI.outcome == 'failure' && steps.bicepCI.conclusion == 'success' }}
uses: azure/CLI@v1
with:
inlineScript: |
az deployment sub create -f ./Bicep/modules/sub_main.bicep -l australiaeast -p ./Bicep/modules/sub_main_params.json --what-if

0 comments on commit eb09a26

Please sign in to comment.