Skip to content

Commit

Permalink
feat: add bicep file linting
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Dec 18, 2024
1 parent a3a9c1e commit f43a1ce
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Bicep

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

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
shell: /bin/bash -e {0}
env:
TERM: xterm-256color

0 comments on commit f43a1ce

Please sign in to comment.