Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(test) run unit tests on examples #294

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: GHA to run unit test for examples
on:
push:
branches:
- "feat(test)-sanity-test-for-examples"

jobs:
run-unit-test:
name: run unit test on examples
strategy:
matrix:
path-to-examples:
[
./servicetask/service-invocation-synchronous,
./servicetask/service-invocation-asynchronous,
./servicetask/rest-service,
./scripttask/xslt-scripttask,
./startevent/message-start,
./process-engine-plugin/bpmn-parse-listener,
./process-engine-plugin/command-interceptor-blocking,
./process-engine-plugin/custom-history-level,
./process-engine-plugin/failed-job-retry-profile,
./bpmn-model-api/generate-process-fluent-api,
./bpmn-model-api/parse-bpmn,
./multi-tenancy/tenant-identifier-embedded,
./multi-tenancy/tenant-identifier-shared-definitions,
./spin/dataformat-configuration-global,
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: check out code
- uses: actions/setup-node@v4
with:
node-version: 17
- name: run unit tests
run: mvn clean verify -B
working-directory: ${{matrix.path-to-examples}}