File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2.1
2+ job_configuration : &job_configuration
3+ docker :
4+ - image : circleci/node:10-stretch
5+ working_directory : ~/repo
6+ jobs :
7+ test :
8+ << : *job_configuration
9+ steps :
10+ - checkout
11+ - restore_cache :
12+ keys :
13+ - v3-dependencies-{{ checksum "package.json" }}
14+ - v3-dependencies-
15+ - run : yarn install --frozen-lockfile
16+ - save_cache :
17+ paths :
18+ - node_modules
19+ key : v3-dependencies-{{ checksum "package.json" }}
20+ - run :
21+ name : Run tests
22+ command : yarn test
23+ lint :
24+ << : *job_configuration
25+ steps :
26+ - checkout
27+ - restore_cache :
28+ keys :
29+ - v3-dependencies-{{ checksum "package.json" }}
30+ - v3-dependencies-
31+ - run : yarn install --frozen-lockfile
32+ - save_cache :
33+ paths :
34+ - node_modules
35+ key : v3-dependencies-{{ checksum "package.json" }}
36+ - run :
37+ name : ESLint
38+ command : |
39+ yarn lint
40+ - run :
41+ name : Prettier (needed for TS files)
42+ command : |
43+ yarn prettier --list-different "**/*.js" "**/*.ts"
44+ workflows :
45+ test :
46+ jobs :
47+ - test
48+ - lint
You can’t perform that action at this time.
0 commit comments