Skip to content

Commit

Permalink
Add lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed May 15, 2024
1 parent 6a735d5 commit 7cb3f34
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PlantUML images

on:
pull_request:
workflow_dispatch:

jobs:
drawio:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Verify number of diagrams
run: |
rc=0
while read -r file; do
if [[ $(grep "<diag" "$file" | wc -l) -ne 1 ]]; then
>&2 echo "$file should contain exactly one diagram"
rc=1
fi
done < <(find . -name "*.drawio")
exit $rc

0 comments on commit 7cb3f34

Please sign in to comment.