mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
version: 2
|
|
|
|
jobs:
|
|
install:
|
|
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
|
|
- save_cache:
|
|
key: alfresco-content-app-{{ .Branch }}-{{ checksum "package.json" }}
|
|
paths:
|
|
- "node_modules"
|
|
lint:
|
|
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: npm run lint
|
|
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:
|
|
- image: circleci/node:8-browsers
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: alfresco-content-app-{{ .Branch }}-{{ checksum "package.json" }}
|
|
- run: npm install
|
|
- run: npm run build
|
|
|
|
workflows:
|
|
version: 2
|
|
build_and_test:
|
|
jobs:
|
|
- install
|
|
- lint:
|
|
requires:
|
|
- install
|
|
- test:
|
|
requires:
|
|
- install
|
|
- build:
|
|
requires:
|
|
- install
|