Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created September 20, 2020 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/0acf46566623e346553b5dabe5c1fe5b to your computer and use it in GitHub Desktop.
Save justinyoo/0acf46566623e346553b5dabe5c1fe5b to your computer and use it in GitHub Desktop.
GitHub Actions and ARM Template Toolkit to Test Bicep Codes
bicep build **/*.bicep
Test-AzTemplate -TemplatePath ./bicep
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