-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
/
config.yml
74 lines (69 loc) · 1.78 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
version: 2.1
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.7.0
jobs:
test-node:
parameters:
node-version:
type: string
partial:
type: boolean
default: false
working_directory: ~/jest
executor: node/default
steps:
- checkout
- node/install:
node-version: << parameters.node-version >>
install-npm: false
- node/install-packages: *install
- when:
condition: << parameters.partial >>
steps:
- run:
command: yarn test-ci-partial
- unless:
condition: << parameters.partial >>
steps:
- run:
command: yarn test-ci
- store_test_results:
path: reports/junit
test-jest-jasmine:
working_directory: ~/jest
executor: node/default
steps:
- checkout
- node/install:
lts: true
install-npm: false
- node/install-packages: *install
- run:
command: JEST_JASMINE=1 yarn test-ci-partial && JEST_JASMINE=1 yarn test-leak
- store_test_results:
path: reports/junit
# Workflows enables us to run multiple jobs in parallel
workflows:
build-and-deploy:
jobs:
- test-node:
matrix:
parameters:
node-version: ['14']
- test-node:
name: test-node-partial-<< matrix.node-version >>
partial: true
matrix:
parameters:
node-version: ['10', '12', '15', '16']
- test-jest-jasmine