@budibase/worker 2.3.18-alpha.2 → 2.3.18-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/scripts/test.sh +12 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.3.18-alpha.2",
4
+ "version": "2.3.18-alpha.4",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "build:docker": "docker build . -t worker-service --label version=$BUDIBASE_RELEASE_VERSION",
23
23
  "dev:stack:init": "node ./scripts/dev/manage.js init",
24
24
  "dev:builder": "npm run dev:stack:init && nodemon",
25
- "test": "jest --coverage --runInBand",
25
+ "test": "bash scripts/test.sh",
26
26
  "test:watch": "jest --watch",
27
27
  "env:multi:enable": "node scripts/multiTenancy.js enable",
28
28
  "env:multi:disable": "node scripts/multiTenancy.js disable",
@@ -36,10 +36,10 @@
36
36
  "author": "Budibase",
37
37
  "license": "GPL-3.0",
38
38
  "dependencies": {
39
- "@budibase/backend-core": "2.3.18-alpha.2",
40
- "@budibase/pro": "2.3.18-alpha.1",
41
- "@budibase/string-templates": "2.3.18-alpha.2",
42
- "@budibase/types": "2.3.18-alpha.2",
39
+ "@budibase/backend-core": "2.3.18-alpha.4",
40
+ "@budibase/pro": "2.3.18-alpha.3",
41
+ "@budibase/string-templates": "2.3.18-alpha.4",
42
+ "@budibase/types": "2.3.18-alpha.4",
43
43
  "@koa/router": "8.0.8",
44
44
  "@sentry/node": "6.17.7",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
@@ -100,5 +100,5 @@
100
100
  "typescript": "4.7.3",
101
101
  "update-dotenv": "1.1.1"
102
102
  },
103
- "gitHead": "4321a07944ae4653d6ea716bf4c2ba588f443660"
103
+ "gitHead": "60cc87c306dffeb7f4fc5c390a4e26e6017863fd"
104
104
  }
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+
3
+ if [[ -n $CI ]]
4
+ then
5
+ # --runInBand performs better in ci where resources are limited
6
+ echo "jest --coverage --runInBand"
7
+ jest --coverage --runInBand
8
+ else
9
+ # --maxWorkers performs better in development
10
+ echo "jest --coverage --maxWorkers=2"
11
+ jest --coverage --maxWorkers=2
12
+ fi