Browse Source

back to stable version

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

35
.circleci/config.yml

@ -1,11 +1,10 @@
version: 2.1 version: 2.1
jobs: jobs:
build: &shared-config
build:
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" }}
@ -15,25 +14,45 @@ jobs:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
lint: lint:
<<: *shared-config
docker:
- image: cimg/node:14.10.1
steps: steps:
- checkout - checkout
- restore_cache:
name: restore yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check - run: yarn lint && yarn format:check
- save_cache:
name: save yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths:
- ./node_modules
unit-test: unit-test:
<<: *shared-config
docker:
- image: cimg/node:14.10.1
steps: steps:
- checkout - checkout
- restore_cache:
name: restore yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run: yarn test:ci - run: yarn test:ci
- save_cache:
name: save yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths:
- ./node_modules
workflows: workflows:
build_and_test: build_and_test:
jobs: jobs:
- build - build
- unit-test:
- lint:
requires: requires:
- build - build
- lint:
- unit-test:
requires: requires:
- build - build
Loading…
Cancel
Save