diff --git a/.circleci/config.yml b/.circleci/config.yml index a40ac81..9d09f85 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,6 +18,9 @@ jobs: - run: name: test-with-coverage command: npm run test_prod + - run: + name: update-coverage + command: npx codecov --token=2d13016a-614b-4266-8f83-aeffbece3d61 - store_test_results: path: test-result - store_artifacts: diff --git a/package.json b/package.json index a451988..c1e1f9e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "node -r ts-node/register src/main.ts", "test": "cross-env JEST_JUNIT_OUTPUT=test-result/result.xml jest --verbose --detectOpenHandles", - "test_prod": "cross-env JEST_JUNIT_OUTPUT=test-result/result.xml jest --verbose --bail --ci --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --coverage && codecov --token=2d13016a-614b-4266-8f83-aeffbece3d61", + "test_prod": "cross-env JEST_JUNIT_OUTPUT=test-result/result.xml jest --verbose --bail --ci --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --coverage", "dev": "cross-env CONF_PATH=./adapters-dev DEBUG=server:* nodemon -r ts-node/register src/main.ts", "dev_start": "cross-env DEBUG=server:* node -r ts-node/register src/main.ts", "dist_start": "npm run build && node dist/main.js",