Improve CI test performance by limiting the number of workers

Around the time of merging #264 and afterwards, the CI would sometimes
freeze while running the tests. When SSHing into the box with the tests
running, several node processes were running. Jest also recommends to
limit the number of workers if CI performance is lacking:

https://jestjs.io/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server

This change is applied in this commit.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2019-06-07 20:09:37 -07:00
parent f385a0908c
commit 2ecaa1ec8c
+1 -1
View File
@@ -8,7 +8,7 @@ version: 2
.test: &test
run:
name: "Test"
command: npm run coverage
command: npm run coverage -- --maxWorkers=4
.store_version: &store_version
run: