build: add circleci target to restrict max jest workers
Signed-off-by: Chris Goller <goller@gmail.com>pull/16274/head
parent
ec4fed37b1
commit
fe0aea0542
|
@ -150,7 +150,7 @@ jobs:
|
|||
set +e
|
||||
cd ui
|
||||
TESTFILES=$(circleci tests glob "src/**/*.test.ts*" | circleci tests split --split-by=timings)
|
||||
yarn test:ci $TESTFILES
|
||||
yarn test:circleci $TESTFILES
|
||||
- run: make chronograf_lint
|
||||
- store_test_results:
|
||||
path: coverage
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
"test:ju:report": "junit-viewer --results=junit-results --save-file=cypress/site/junit-report.html",
|
||||
"test:ju:clean": "rm junit-results/*.xml",
|
||||
"test:ju:all": "yarn test:ju:clean && yarn test:junit; yarn test:ju:report;",
|
||||
"test:circleci": "yarn run test:ci --maxWorkers=2",
|
||||
"test:ci": "JEST_JUNIT_OUTPUT_DIR=\"./coverage\" jest --ci --coverage",
|
||||
"lint": "yarn tsc && yarn prettier && yarn eslint",
|
||||
"eslint": "eslint '{src,cypress}/**/*.{ts,tsx}'",
|
||||
|
|
Loading…
Reference in New Issue