-
Notifications
You must be signed in to change notification settings - Fork 110
/
config.yml
48 lines (45 loc) · 1.16 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
version: 2.1
orbs:
browser-tools: circleci/browser-tools@1.1.0
jobs:
test-time-zone:
parameters:
timeZone:
type: string
docker:
- image: cimg/node:18.13.0-browsers
steps:
- browser-tools/install-chrome
- checkout
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --immutable
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- .yarn/cache
- .yarn/build-state.yml
- .yarn/install-state.gz
- node_modules
- run:
name: Unit test
command: yarn test
environment:
TZ: << parameters.timeZone >>
workflows:
test-multiple-time-zones:
jobs:
- test-time-zone:
name: UTC
timeZone: UTC
- test-time-zone:
name: America/Los_Angeles
timeZone: America/Los_Angeles
- test-time-zone:
name: Australia/Melbourne
timeZone: Australia/Melbourne