-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.yml
36 lines (35 loc) · 1.04 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
version: 2
jobs:
build:
working_directory: ~/jest-image-snapshot-example
docker:
- image: circleci/node:8.4.0
environment:
TZ: "/usr/share/zoneinfo/Asia/Seoul"
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Install Dependency
command: yarn install
- save_cache:
key: dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- ~/.yarn-cache
- run:
name: Workaround for https://github.com/GoogleChrome/puppeteer/issues/290
command: sh ./scripts/workaround-puppeteer-issue-290.sh
- run:
name: Start Server
command: yarn start
background: true
- run:
name: Test
command: |
sleep 2
yarn test -- --maxWorkers=2
- store_artifacts:
path: test/__image_snapshots__/__diff_output__
destination: image_snapshot_diff