diff --git a/.circleci/config.yml b/.circleci/config.yml index 52ba693..eebf66c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,23 +5,22 @@ jobs: build-and-test: docker: - image: circleci/node:9-browsers - working_directory: ~/insight/app + working_directory: ~/insight steps: - checkout + # Download and cache dependencies - restore_cache: keys: - dependency-cache-{{ checksum "package.json" }} - run: npm install - - run: npm run test:ci - save_cache: paths: - node_modules key: dependency-cache-{{ checksum "package.json" }} - - store_artifacts: - path: ./test - - store_test_results: - path: ./test + + # run tests + - run: npm run test:ci workflows: version: 2 diff --git a/package.json b/package.json index 14bc13a..00c175d 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "start": "run-s watch-app", "watch-app": "cd app && npm start", "test": "cd app && ng test --code-coverage", - "test:ci": "npm run test:ci" + "test:ci": "cd app && npm run test:ci" }, "dependencies": {}, "devDependencies": {