@samitouri / QOS-React / commits / 8f17ade7e5

Circle CI config changes

Brian Vaughn committed Apr 12, 2019 at 09:27 UTC 8f17ade7e5dfce75940197d0ba936e5f5005d523
1 file changed +29 -10
.circleci/config.yml
+29 -10
@@ -7,7 +7,7 @@ jobs:
7 build:
8 docker:
9 # specify the version you desire here
10 - - image: circleci/node:7.10
10 + - image: circleci/node:10.12.0
11
12 # Specify service dependencies here if necessary
13 # CircleCI maintains a library of pre-built images
@@ -21,19 +21,38 @@ jobs:
21
22 # Download and cache dependencies
23 - restore_cache:
24 + name: Restore node_modules cache
25 keys:
25 - - v1-dependencies-{{ checksum "package.json" }}
26 - # fallback to using the latest cache if no exact match is found
27 - - v1-dependencies-
26 + - v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
27 + - v1-node-{{ arch }}-{{ .Branch }}-
28 + - v1-node-{{ arch }}-
29
29 - - run: yarn install
30 + - run:
31 + name: Nodejs Version
32 + command: node --version
33 +
34 + - run:
35 + name: Install Packages
36 + command: yarn install --frozen-lockfile
37
38 - save_cache:
39 + name: Save node_modules cache
40 + key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
41 paths:
42 - node_modules
34 - key: v1-dependencies-{{ checksum "package.json" }}
43
36 - - run: yarn prettier:ci
37 - - run: yarn lint:ci
38 - - run: yarn flow
39 - - run: yarn test
\ No newline at end of file
44 + - run:
45 + name: Check formatting
46 + command: yarn prettier:ci
47 +
48 + - run:
49 + name: Check lint
50 + command: yarn lint:ci
51 +
52 + - run:
53 + name: Check Flow
54 + command: yarn flow
55 +
56 + - run:
57 + name: Test Packages
58 + command: yarn test
\ No newline at end of file