/
config.yml
59 lines (54 loc) · 1.45 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
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@5.0.0
jobs:
test-node:
parameters:
node-version:
type: string
shard:
type: string
working_directory: ~/jest
executor: node/default
steps:
- checkout
- node/install:
node-version: << parameters.node-version >>
- node/install-packages: *install
- run:
command: yarn test-ci-partial --shard=<< matrix.shard >>
- store_test_results:
path: reports/junit
test-jest-jasmine:
working_directory: ~/jest
executor: node/default
steps:
- checkout
- node/install:
node-version: lts/*
- 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:
name: test-node-partial-<< matrix.node-version >>-<< matrix.shard >>
matrix:
parameters:
node-version: ['12', '14', '16', '17']
shard: ['1/3', '2/3', '3/3']
- test-jest-jasmine