Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
feat(platform #66): updated linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AminYacine committed Dec 26, 2023
1 parent fc10fce commit ad4e927
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
npm install -g bpmnlint dmnlint
- name: Run BPMN Lint
# Find all BPMN files in subdirectories and lint them
# Find all BPMN files in the artifacts directory and lint them
run: |
find . -type f -name '*.bpmn' -exec sh -c 'bpmnlint -c "${0%/*}/.bpmnlintrc" "$0"' {} \;
find artifacts -type f -name '*.bpmn' -exec sh -c 'bpmnlint -c "$(dirname "$0")/.bpmnlintrc" "$0"' {} \;
if [ $? -eq 0 ]; then
echo "BPMN linting passed"
else
Expand All @@ -46,9 +46,9 @@ jobs:
fi
- name: Run DMN Lint
# Find all DMN files in subdirectories and lint them
# Find all DMN files in the eartifacts directory and lint them
run: |
find . -type f -name '*.dmn' -exec sh -c 'dmnlint -c "${0%/*}/.dmnlintrc" "$0"' {} \;
find artifacts -type f -name '*.dmn' -exec sh -c 'dmnlint -c "$(dirname "$0")/.dmnlintrc" "$0"' {} \;
if [ $? -eq 0 ]; then
echo "DMN linting passed"
else
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ There are three main [workflows](.github/workflows) that are implemented in this
### [Build](.github/workflows/build.yaml)
In the build workflow the project is built and every unit test is executed to ensure code quality. On test failure the build job
is going to fail. The linting job checks every .bpmn and .dmn file against the specified linting rules
([bpmn](.bpmnlintrc), [dmn](.dmnlintrc)).
([bpmn](artifacts/.bpmnlintrc), [dmn](artifacts/.dmnlintrc)).

Note that the linting job will not fail if any errors or warnings are detected
during the check-up.
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ad4e927

Please sign in to comment.