improved build workflow (#383)

* improve workflow

* update CI config

* update config
This commit is contained in:
Denys Vuika 2018-06-03 11:11:39 +01:00 committed by GitHub
parent fb4b10476a
commit 20ad62d035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
version: 2
jobs:
install:
test:
working_directory: ~/alfresco-content-app
docker:
- image: circleci/node:8-browsers
@ -14,6 +14,7 @@ jobs:
key: alfresco-content-app-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- "node_modules"
- run: xvfb-run -a npm run test:ci
lint:
working_directory: ~/alfresco-content-app
docker:
@ -34,16 +35,6 @@ jobs:
key: alfresco-content-app-{{ .Branch }}-{{ checksum "package.json" }}
- run: npm install
- run: npm run spellcheck
test:
working_directory: ~/alfresco-content-app
docker:
- image: circleci/node:8-browsers
steps:
- checkout
- restore_cache:
key: alfresco-content-app-{{ .Branch }}-{{ checksum "package.json" }}
- run: npm install
- run: xvfb-run -a npm run test:ci
build:
working_directory: ~/alfresco-content-app
docker:
@ -59,16 +50,13 @@ workflows:
version: 2
build_and_test:
jobs:
- install
- test
- lint:
requires:
- install
- test
- spellcheck:
requires:
- install
- test:
requires:
- install
- test
- build:
requires:
- install
- test