templatize makefile config and bicepparams #742
Workflow file for this run
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: Validate dev-infrastructure | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'dev-infrastructure/**' | |
jobs: | |
validate_bicep: | |
permissions: | |
contents: 'read' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
fetch-depth: 1 | |
sparse-checkout: dev-infrastructure | |
- name: 'az bicep format and lint' | |
working-directory: './dev-infrastructure' | |
run: | | |
az bicep version | |
make -f Makefile.lint.mk fmt | |
make -f Makefile.lint.mk lint | |
- name: Check for uncommitted changes | |
working-directory: './dev-infrastructure' | |
run: | | |
git diff --exit-code || (echo "::error::Uncommitted changes detected in bicep templates" && exit 1) |