Browse Source

first try tp step 4

main
Morgan 6 years ago
parent
commit
0b07536d04
  1. 40
      .circleci/config.yml

40
.circleci/config.yml

@ -13,7 +13,7 @@ commands:
key: yarn-v1-packages-{{ checksum "yarn.lock" }} key: yarn-v1-packages-{{ checksum "yarn.lock" }}
jobs: jobs:
build:
build1:
docker: docker:
- image: "circleci/node:12" - image: "circleci/node:12"
@ -24,3 +24,41 @@ jobs:
command: "yarn global add node-gyp && yarn install" command: "yarn global add node-gyp && yarn install"
name: "installation" name: "installation"
- save_cache_cmd - save_cache_cmd
lint1:
docker:
- image: "circleci/node:12"
steps:
- checkout
- restore_cache_cmd
- run:
command: "yarn lint && yarn format:check"
name: "lint and format check"
- save_cache_cmd
unit1:
docker:
- image: "circleci/node:12"
steps:
- checkout
- restore_cache_cmd
- run:
command: "yarn test:ci"
name: "test unitaires"
- save_cache_cmd
workflows:
version: 2
test_workflow:
jobs:
- build1
- lint1:
requires:
- build1
- unit1:
requires:
- build1
- lint1
Loading…
Cancel
Save