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): added linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AminYacine committed Nov 14, 2023
1 parent 57f2dca commit 6e3acff
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,41 @@ jobs:
distribution: 'adopt'

- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
run: mvn --batch-mode --update-snapshots verify
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '16'

- name: Install Dependencies
run: |
npm install -g bpmnlint dmnlint
- name: Run BPMN Lint
# Find all BPMN files in subdirectories and lint them
run: |
find . -type f -name '*.bpmn' -exec sh -c 'bpmnlint -c "${0%/*}/.bpmnlintrc" "$0"' {} \;
if [ $? -eq 0 ]; then
echo "BPMN linting passed"
else
echo "BPMN linting failed"
exit 1
fi
- name: Run DMN Lint
# Find all DMN files in subdirectories and lint them
run: |
find . -type f -name '*.dmn' -exec sh -c 'dmnlint -c "${0%/*}/.dmnlintrc" "$0"' {} \;
if [ $? -eq 0 ]; then
echo "DMN linting passed"
else
echo "DMN linting failed"
exit 1
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "bpmnlint:recommended"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "dmnlint:recommended"
}

0 comments on commit 6e3acff

Please sign in to comment.