Skip to content

feat: add bicep file linting #5

feat: add bicep file linting

feat: add bicep file linting #5

Workflow file for this run

name: Bicep
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
FORCE_COLOR: true
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bicep
run: |
curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64
chmod +x ./bicep
sudo mv ./bicep /usr/local/bin/bicep
- name: Lint Bicep
run: |
find . -name "*.bicep" -print0 | while read -r -d '' bicepfile; do
echo "Linting file: $bicepfile"
bicep lint $bicepfile
done