This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
feat(platform #66): test publish #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build-maven: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Build and Test with maven | |
run: mvn --batch-mode --update-snapshots verify | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- 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 the artifacts directory and lint them | |
run: | | |
find artifacts -type f -name '*.bpmn' -exec sh -c 'bpmnlint -c "$(dirname "$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 the eartifacts directory and lint them | |
run: | | |
find artifacts -type f -name '*.dmn' -exec sh -c 'dmnlint -c "$(dirname "$0")/.dmnlintrc" "$0"' {} \; | |
if [ $? -eq 0 ]; then | |
echo "DMN linting passed" | |
else | |
echo "DMN linting failed" | |
exit 1 | |
fi |