From 83756ca18bf14fce088224aebe26db891c685555 Mon Sep 17 00:00:00 2001 From: gbetances089 Date: Fri, 11 Oct 2024 13:23:42 +0200 Subject: [PATCH] feat(test) GHA to run unit test on examples --- .github/workflows/sanity_test.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/sanity_test.yml diff --git a/.github/workflows/sanity_test.yml b/.github/workflows/sanity_test.yml new file mode 100644 index 000000000..805345f4d --- /dev/null +++ b/.github/workflows/sanity_test.yml @@ -0,0 +1,35 @@ +name: Sanity test for examples +on: push + +jobs: + run-sanity-test: + name: sanity test against examples + strategy: + matrix: + 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 sanity test + run: mvn clean verify + working-directory: ${{ matrix.examples }}