forked from jestjs/jest
/
config.yml
111 lines (104 loc) · 2.61 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
aliases:
- &filter-ignore-gh-pages
branches:
ignore: gh-pages
- &install
pkg-manager: yarn
override-ci-command: yarn install --immutable && yarn build:js
cache-path: ~/.yarn/berry/cache
include-branch-in-cache-key: false
app-dir: ~/jest
orbs:
node: circleci/node@4.0.0
version: 2.1
jobs:
test-node-10:
working_directory: ~/jest
executor: node/default
steps:
- checkout
- node/install:
node-version: '10'
install-npm: false
- node/install-packages: *install
- run:
command: yarn test-ci-partial
- store_test_results:
path: reports/junit
test-jest-circus:
working_directory: ~/jest
executor: node/default
steps:
- checkout
- node/install:
lts: true
install-npm: false
- node/install-packages: *install
- 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
executor: node/default
steps:
- checkout
- node/install:
node-version: '12'
install-npm: false
- node/install-packages: *install
- run:
command: yarn test-ci-partial
- store_test_results:
path: reports/junit
test-node-14:
working_directory: ~/jest
executor: node/default
steps:
- checkout
- node/install:
node-version: '14'
install-npm: false
- node/install-packages: *install
- run:
command: yarn test-ci
- store_test_results:
path: reports/junit
test-node-15:
working_directory: ~/jest
executor: node/default
steps:
- checkout
- node/install:
node-version: '15'
install-npm: false
- node/install-packages: *install
- run:
command: yarn test-ci-partial
- store_test_results:
path: reports/junit
test-or-deploy-website:
working_directory: ~/jest
executor: node/default
resource_class: large
steps:
- checkout
- node/install:
lts: true
install-npm: false
- node/install-packages: *install
- 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-14
- test-node-15 # current
- test-jest-circus
- test-or-deploy-website:
filters: *filter-ignore-gh-pages