Browse Source

try yarn test implementation 🔧

main
Gautier couture 6 years ago
parent
commit
852bd9631f
  1. 29
      .circleci/config.yml

29
.circleci/config.yml

@ -1,33 +1,34 @@
version: 2.1 version: 2.1
jobs:
install:
jobs:
Installation:
docker: docker:
- image: circleci/node:12.9-browsers - image: circleci/node:12.9-browsers
steps:
steps:
- checkout - checkout
- restore_cache:
keys:
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} - yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- yarn-packages - yarn-packages
- run: yarn global add node-gyp && yarn install - run: yarn global add node-gyp && yarn install
- save_cache: - save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} key: yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
paths:
paths:
- node_modules - node_modules
test:
Test:
docker: docker:
- image: circleci/node:12.9-browsers - image: circleci/node:12.9-browsers
steps:
steps:
- checkout - checkout
- restore_cache:
keys:
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} - yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- run: - run:
name: Test name: Test
command: yarn test command: yarn test
workflows: workflows:
Build_Test_N_Deploy:
jobs:
- install
Build_Test_N_Deploy:
jobs:
- Installation
- Test
Loading…
Cancel
Save