GitHub Actions and ARM Template Toolkit to Test Bicep Codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bicep build **/*.bicep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test-AzTemplate -TemplatePath ./bicep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ARM Template Build and Test | |
on: [ push, pull_request ] | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v2 | |
- name: Run Bicep build | |
uses: aliencube/bicep-build-actions@v0.1 | |
with: | |
files: '**/*.bicep' | |
- name: Run ARM TTK | |
uses: aliencube/arm-ttk-actions@v0.3 | |
id: armtest | |
with: | |
path: ./bicep | |
- name: Show ARM TTK test result | |
shell: bash | |
continue-on-error: true | |
run: | | |
echo 'Results: ${{ toJSON(fromJSON(steps.armtest.outputs.results)) }}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment