-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
/
config.yml
112 lines (103 loc) · 2.56 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
aliases:
- &restore-cache
key: v4-dependencies-{{ checksum "yarn.lock" }}
- &save-cache
paths:
- ~/.yarn/berry/cache
key: v4-dependencies-{{ checksum "yarn.lock" }}
- &filter-ignore-gh-pages
branches:
ignore: gh-pages
- &install yarn install && yarn build:js
version: 2
jobs:
test-node-10:
working_directory: ~/jest
docker:
- image: circleci/node:10
steps:
- checkout
- restore-cache: *restore-cache
- run: *install
- save-cache: *save-cache
- run:
command: yarn test-ci-partial
- store_test_results:
path: reports/junit
test-jest-circus:
working_directory: ~/jest
docker:
- image: circleci/node:12
steps:
- checkout
- restore-cache: *restore-cache
- run: *install
- save-cache: *save-cache
- run:
command: JEST_CIRCUS=1 yarn test-ci-partial && JEST_CIRCUS=1 yarn test-leak
- store_test_results:
path: reports/junit
test-node-12:
working_directory: ~/jest
docker:
- image: circleci/node:12
steps:
- checkout
- restore-cache: *restore-cache
- run: *install
- save-cache: *save-cache
- run:
command: yarn test-ci
- store_test_results:
path: reports/junit
test-node-13:
working_directory: ~/jest
docker:
- image: circleci/node:13
steps:
- checkout
- restore-cache: *restore-cache
- run: *install
- save-cache: *save-cache
- run:
command: yarn test-ci-partial
- store_test_results:
path: reports/junit
test-node-14:
working_directory: ~/jest
docker:
- image: circleci/node:14
steps:
- checkout
- restore-cache: *restore-cache
- run: *install
- save-cache: *save-cache
- run:
command: yarn test-ci-partial
- store_test_results:
path: reports/junit
test-or-deploy-website:
working_directory: ~/jest
docker:
- image: circleci/node:12
resource_class: large
steps:
- checkout
- restore-cache: *restore-cache
- run: *install
- save-cache: *save-cache
- run:
name: Test or Deploy Jest Website
command: ./.circleci/website.sh
# Workflows enables us to run multiple jobs in parallel
workflows:
version: 2
build-and-deploy:
jobs:
- test-node-10
- test-node-12
- test-node-13
- test-node-14 # current
- test-jest-circus
- test-or-deploy-website:
filters: *filter-ignore-gh-pages