Skip to content

Commit

Permalink
Create validate-iac-bicep.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
crpietschmann committed Mar 12, 2024
1 parent ce64209 commit 185babd
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/validate-iac-bicep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Validate IaC - Azure Bicep

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read

jobs:
terraform-v1:
name: 'Validate Bicep - v1'
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bicep
uses: anthony-c-martin/setup-bicep@v0.1

- name: Validate
run: |
bicep build
working-directory: IaC/Bicep/v1

terraform-v2:
name: 'Validate Bicep - v2'
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bicep
uses: anthony-c-martin/setup-bicep@v0.1

- name: Validate
run: |
bicep build
working-directory: IaC/Bicep/v2

0 comments on commit 185babd

Please sign in to comment.