Skip to content

Commit

Permalink
Remove and assert absence of puml output file names
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed May 16, 2024
1 parent 4a5995f commit 0ada0b4
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 32 deletions.
78 changes: 52 additions & 26 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,6 @@ on:
workflow_dispatch:

jobs:
drawio:
runs-on: ubuntu-latest

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

- name: Verify number of diagrams
run: |
function err {
>&2 echo -e "\033[0;31m$@\033[0m"
}
rc=0
while read -r file; do
echo "Checking $file"
if [[ $(grep "<diag" "$file" | wc -l) -ne 1 ]]; then
err "$file does not contain exactly one diagram"
rc=1
fi
done < <(find . -name "*.drawio")
exit $rc
asciidoc:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -85,3 +59,55 @@ jobs:
done < <(find . -type f -name "*.adoc")
exit $rc
drawio:
runs-on: ubuntu-latest

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

- name: Verify number of diagrams
run: |
function err {
>&2 echo -e "\033[0;31m$@\033[0m"
}
rc=0
while read -r file; do
echo "Checking $file"
if [[ $(grep "<diag" "$file" | wc -l) -ne 1 ]]; then
err "$file does not contain exactly one diagram"
rc=1
fi
done < <(find . -name "*.drawio")
exit $rc
puml:
runs-on: ubuntu-latest

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

- name: Verify absence of output file names
run: |
function err {
>&2 echo -e "\033[0;31m$@\033[0m"
}
rc=0
while read -r file; do
echo "Checking $file"
if grep -qE "^@startuml\s+." "$file"; then
err "$file contains illegal output name in @startuml"
rc=1
fi
done < <(find . -name "*.puml")
exit $rc
2 changes: 1 addition & 1 deletion src/plantuml/TI-M_ePA/TI-Messenger_OIDC_login_fdv.puml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@startuml "TI-Messenger_OIDC_Login"
@startuml
skinparam sequenceMessageAlign direction
skinparam WrapWidth 300
skinparam minClassWidth 150
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@startuml "TI-Messenger_OIDC_Login_simplified"
@startuml
skinparam sequenceMessageAlign direction
skinparam WrapWidth 300
skinparam BoxPadding 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# UC - 10063
# Name: Austausch von Events zwischen Akteuren innerhalb einer Organisation
'/
@startuml
@startuml
skinparam sequenceMessageAlign direction
skinparam minClassWidth 200
skinparam BoxPadding 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@startuml "Einträge im VZD-FHIR-Directory suchen"
@startuml
skinparam sequenceMessageAlign direction
skinparam minClassWidth 200
skinparam BoxPadding 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@startuml "Einträge im VZD-FHIR-Directory suchen"
@startuml
skinparam sequenceMessageAlign direction
skinparam minClassWidth 200
skinparam BoxPadding 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@startuml "TI-M spezifische Kommunikation"
@startuml
!pragma layout smetana
skinparam actorStyle awesome
left to right direction
Expand Down

0 comments on commit 0ada0b4

Please sign in to comment.