Skip to content

Commit

Permalink
refactor: remove zeebe
Browse files Browse the repository at this point in the history
refactor: renaming workit-camunda to workit
chore: update deps and fix tests/lint related to dep upgrades
refactor: update deps and keep commonjs
fix: parallel example
chore: update lerna to latest
chore: add package-lock

Signed-off-by: Olivier Albertini <[email protected]>
  • Loading branch information
OlivierAlbertini committed Dec 12, 2023
1 parent 623df54 commit c11e562
Show file tree
Hide file tree
Showing 334 changed files with 27,239 additions and 63,800 deletions.
80 changes: 32 additions & 48 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
version: 2

cache_1: &cache_1
key: npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1
key: npm-cache-02-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
- ./yarn.lock
- examples/basic/node_modules
- examples/binding/node_modules
- examples/event/node_modules
- examples/failure-strategy/node_modules
- examples/opentelemetry/node_modules
- examples/parallel/node_modules
- packages/workit-bpm-client/node_modules
- packages/workit-camunda/node_modules
- packages/workit-cli/node_modules
- packages/workit-core/node_modules
- packages/workit-types/node_modules
- packages/workit-zeebe-client/node_modules
- packages/zeebe-elasticsearch-client/node_modules
- ./package-lock.json
- ./examples/basic/node_modules
- ./examples/binding/node_modules
- ./examples/event/node_modules
- ./examples/failure-strategy/node_modules
- ./examples/opentelemetry/node_modules
- ./examples/parallel/node_modules
- ./packages/workit-bpm-client/node_modules
- ./packages/workit/node_modules
- ./packages/workit-core/node_modules
- ./packages/workit-types/node_modules

lint: &lint
steps:
Expand All @@ -37,25 +34,26 @@ lint: &lint
echo "CIRCLE_NODE_VERSION=${CIRCLE_NODE_VERSION}"
- restore_cache:
keys:
- npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1
- npm-cache-02-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
command: yarn install
command: npm ci
- run:
name: Debug ls
command: |
ls -Al /home/circleci/project/packages/workit-bpm-client
- save_cache:
<<: *cache_1
- run:
name: Compile code
command: yarn build
command: npm run build
- run:
name: test
command: npm run lint

node_tests: &node_tests
steps:
- checkout
- run:
name: Create Checksum
command: sh .circleci/checksum.sh /tmp/checksums.txt
- run:
name: Setup environment variables
command: |
Expand All @@ -68,15 +66,15 @@ node_tests: &node_tests
echo "CIRCLE_NODE_VERSION=${CIRCLE_NODE_VERSION}"
- restore_cache:
keys:
- npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1
- npm-cache-02-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
command: yarn install
command: npm ci
- save_cache:
<<: *cache_1
- run:
name: Compile code
command: yarn build
command: npm run build
- run:
name: test
command: npm run test
Expand All @@ -88,9 +86,6 @@ node_tests: &node_tests
node_integraton_tests: &node_integraton_tests
steps:
- checkout
- run:
name: Create Checksum
command: sh .circleci/checksum.sh /tmp/checksums.txt
- run:
name: Setup environment variables
command: |
Expand All @@ -103,25 +98,15 @@ node_integraton_tests: &node_integraton_tests
echo "CIRCLE_NODE_VERSION=${CIRCLE_NODE_VERSION}"
- restore_cache:
keys:
- npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1
- npm-cache-02-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
command: yarn install
command: npm ci
- save_cache:
<<: *cache_1
- run:
name: Compile code
command: yarn build
- run:
name: Waiting for Zeebe to be ready
command: |
for i in `seq 1 10`;
do
nc -z localhost 26500 && echo success && exit 0
echo -n .
sleep 1
done
echo Failed waiting for Zeebe && exit 1
command: npm run build
- run:
name: test
command: npm run test:all
Expand All @@ -147,9 +132,9 @@ workflows:
version: 2
test:
jobs:
- node12:
- node18:
filters: *docs_filters
- node14:
- node20:
filters: *docs_filters
- nodelts:
filters: *docs_filters
Expand All @@ -166,18 +151,17 @@ workflows:

jobs:
# Runs the tests
node12:
node18:
docker:
- image: circleci/node:12
- image: cimg/node:18.19
<<: *node_tests
node14:
node20:
docker:
- image: circleci/node:14
# - image: camunda/zeebe:0.22.1
- image: cimg/node:20.10
<<: *node_tests
lint:
docker:
- image: circleci/node:lts
- image: cimg/node:lts
<<: *lint
nodelts:
docker:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Please provide either a [repl.it demo](https://repl.it) or a minimal repository

## Your environment
Nodejs:
workit-camunda:
workit:
Windows/Mac
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ lib
#lerna
.changelog

# lock files
package-lock.json
packages/**/package-lock.json
examples/**/package-lock.json

# VsCode configs
.vscode

yarn.lock
Loading

0 comments on commit c11e562

Please sign in to comment.