Browse Source

back to step3

pull/2/head
Neel Coffin 6 years ago
parent
commit
a0d0df2d6d
  1. 10
      .circleci/config.yml

10
.circleci/config.yml

@ -1,10 +1,11 @@
version: 2.1 version: 2.1
jobs: jobs:
build:
build: &shared-config
docker: docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
name: restore yarn package cache name: restore yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
@ -14,6 +15,7 @@ jobs:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
lint: lint:
docker: docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
@ -27,7 +29,7 @@ jobs:
name: save yarn package cache name: save yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules
- ./node_modules
unit-test: unit-test:
docker: docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
@ -42,6 +44,7 @@ jobs:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
workflows: workflows:
build_and_test: build_and_test:
jobs: jobs:
@ -52,6 +55,3 @@ workflows:
- lint: - lint:
requires: requires:
- build - build
Loading…
Cancel
Save