changed working directory
This commit is contained in:
parent
34e6089be9
commit
24eda77855
@ -5,23 +5,22 @@ jobs:
|
|||||||
build-and-test:
|
build-and-test:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9-browsers
|
- image: circleci/node:9-browsers
|
||||||
working_directory: ~/insight/app
|
working_directory: ~/insight
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
# Download and cache dependencies
|
# Download and cache dependencies
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- dependency-cache-{{ checksum "package.json" }}
|
- dependency-cache-{{ checksum "package.json" }}
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run test:ci
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- node_modules
|
- node_modules
|
||||||
key: dependency-cache-{{ checksum "package.json" }}
|
key: dependency-cache-{{ checksum "package.json" }}
|
||||||
- store_artifacts:
|
|
||||||
path: ./test
|
# run tests
|
||||||
- store_test_results:
|
- run: npm run test:ci
|
||||||
path: ./test
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
"start": "run-s watch-app",
|
"start": "run-s watch-app",
|
||||||
"watch-app": "cd app && npm start",
|
"watch-app": "cd app && npm start",
|
||||||
"test": "cd app && ng test --code-coverage",
|
"test": "cd app && ng test --code-coverage",
|
||||||
"test:ci": "npm run test:ci"
|
"test:ci": "cd app && npm run test:ci"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user