Skip to content

Commit 07885fb

Browse files
authored
Merge branch 'master' into fix-empty-categoryOrderHints
2 parents a2bc682 + 739f1cb commit 07885fb

File tree

33 files changed

+1563
-954
lines changed

33 files changed

+1563
-954
lines changed

.circleci/config.yml

Lines changed: 60 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,90 @@
1-
node10Environment: &node10Environment
2-
docker:
3-
- image: circleci/node:10
4-
working_directory: ~/nodejs
5-
node12Environment: &node12Environment
6-
docker:
7-
- image: circleci/node:12
8-
working_directory: ~/nodejs
1+
version: 2.1
92

103
aliases:
11-
- &restore_yarn_cache
4+
- &working_directory ~/nodejs
5+
6+
- &restore_yarn_cache_node_10
7+
keys:
8+
- v1-yarn-cache-node_10-{{ .Branch }}-{{ checksum "yarn.lock" }}
9+
- v1-yarn-cache-node_10-{{ .Branch }}
10+
- v1-yarn-cache-node_10
11+
12+
- &save_yarn_cache_node_10
13+
key: v1-yarn-cache-node_10-{{ .Branch }}-{{ checksum "yarn.lock" }}
14+
paths:
15+
- ~/.cache/yarn
16+
17+
- &restore_yarn_cache_node_12
1218
keys:
13-
- v3-yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
14-
- v3-yarn-cache-{{ .Branch }}
15-
- v3-yarn-cache
19+
- v1-yarn-cache-node_12-{{ .Branch }}-{{ checksum "yarn.lock" }}
20+
- v1-yarn-cache-node_12-{{ .Branch }}
21+
- v1-yarn-cache-node_12
1622

17-
- &save_yarn_cache
18-
key: v3-yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
23+
- &save_yarn_cache_node_12
24+
key: v1-yarn-cache-node_12-{{ .Branch }}-{{ checksum "yarn.lock" }}
1925
paths:
20-
- node_modules
2126
- ~/.cache/yarn
2227

2328
- &yarn_install
2429
name: Installing
2530
command: yarn --frozen-lockfile
2631

27-
- &unit_test
28-
name: Unit testing
29-
# Limiting the workers of Jest to 10
30-
# as the build otherwise dies due to resouce restrictions.
31-
command: yarn test:ci --maxWorkers=10
32+
executors:
33+
node_10:
34+
docker:
35+
- image: circleci/node:10.22.0
36+
working_directory: *working_directory
37+
node_12:
38+
docker:
39+
# Keep it at `12.18.2` as otherwise there may be bugs with `graceful-fs` dependency
40+
# https://github.com/nodejs/node/issues/34529
41+
- image: circleci/node:12.18.2
42+
working_directory: *working_directory
3243

33-
- &unit_test_with_coverage
34-
name: Unit testing (with coverage report)
35-
command: yarn test:coverage:ci
36-
37-
version: 2
3844
jobs:
39-
lint:
40-
<<: *node12Environment
45+
install_test_node_10:
46+
executor: node_10
4147
steps:
4248
- checkout
43-
- restore-cache: *restore_yarn_cache
49+
- restore_cache: *restore_yarn_cache_node_10
4450
- run: *yarn_install
45-
- save_cache: *save_yarn_cache
51+
- save_cache: *save_yarn_cache_node_10
4652
- run:
47-
name: Linting
53+
name: Running linters
4854
# Limiting the workers of Jest to 10
49-
# as the build otherwise dies due to resouce restrictions.
55+
# as the build otherwise dies due to resource restrictions.
5056
command: yarn lint --maxWorkers=10
51-
test_unit_node_10:
52-
<<: *node10Environment
53-
steps:
54-
- checkout
55-
- restore-cache: *restore_yarn_cache
56-
- run: *yarn_install
57-
- save_cache: *save_yarn_cache
58-
- run: *unit_test
59-
test_unit_node_12:
60-
<<: *node12Environment
61-
steps:
62-
- checkout
63-
- restore-cache: *restore_yarn_cache
64-
- run: *yarn_install
65-
- save_cache: *save_yarn_cache
66-
- run: *unit_test_with_coverage
67-
test_integration:
68-
<<: *node12Environment
57+
- run:
58+
name: Running tests
59+
# Limiting the workers of Jest to 10
60+
# as the build otherwise dies due to resource restrictions.
61+
command: yarn test:ci
62+
63+
install_test_node_12:
64+
executor: node_12
6965
steps:
7066
- checkout
71-
- restore-cache: *restore_yarn_cache
67+
- restore_cache: *restore_yarn_cache_node_12
7268
- run: *yarn_install
73-
- save_cache: *save_yarn_cache
69+
- save_cache: *save_yarn_cache_node_12
70+
- run:
71+
name: Running linters
72+
# Limiting the workers of Jest to 10
73+
# as the build otherwise dies due to resource restrictions.
74+
command: yarn lint --maxWorkers=10
75+
- run:
76+
name: Running tests (with coverage report)
77+
# Limiting the workers of Jest to 10
78+
# as the build otherwise dies due to resource restrictions.
79+
command: yarn test:coverage:ci
7480
- run:
75-
name: Integration testing
81+
name: Running integration tests
7682
command: yarn test:integration
7783

7884
workflows:
7985
version: 2
8086
build_and_test:
8187
jobs:
82-
- lint
83-
- test_unit_node_10:
84-
requires:
85-
- lint
86-
- test_unit_node_12:
87-
requires:
88-
- lint
89-
- test_integration:
88+
- install_test_node_10
89+
- install_test_node_12:
9090
context: org-global
91-
requires:
92-
# Only depending on one unit testing
93-
# job will speed up the build by starting
94-
# the integration testing early (in confidence).
95-
- test_unit_node_12

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.22.0
1+
12.18.2

0 commit comments

Comments
 (0)