-
Notifications
You must be signed in to change notification settings - Fork 183
/
config.yml
112 lines (111 loc) · 3.11 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
112
version: 2.1
jobs:
install_deps:
docker:
- image: cimg/node:18.16.0
steps:
- checkout
- run:
name: Install pnpm
command: npm i --prefix=$HOME/.local -g pnpm
- restore_cache:
keys:
- deps-v6-{{ checksum "pnpm-lock.yaml" }}
- deps-v6-{{ .Branch }}
- run:
name: Install dependencies
command: pnpm install
- save_cache:
key: deps-v6-{{ checksum "pnpm-lock.yaml" }}
paths:
- ./node_modules
- ./packages/eslint-config/node_modules
- ./packages/eslint-rules/node_modules
- ./packages/prettier-config/node_modules
- ./packages/shared/node_modules
- ./packages/webapp/node_modules
- ./packages/extension/node_modules
build:
docker:
- image: cimg/node:18.16.0
resource_class: medium+
steps:
- checkout
- restore_cache:
keys:
- deps-v6-{{ checksum "pnpm-lock.yaml" }}
- deps-v6-{{ .Branch }}
- run:
name: Build
command: npm run build:chrome
working_directory: packages/extension
test_extension:
docker:
- image: cimg/node:18.16.0
resource_class: medium+
steps:
- checkout
- restore_cache:
keys:
- deps-v6-{{ checksum "pnpm-lock.yaml" }}
- deps-v6-{{ .Branch }}
- run:
name: Test
command: npm run test -- --ci --reporters=default --reporters=jest-junit --runInBand
environment:
JEST_JUNIT_OUTPUT_DIR: ../../test-results
working_directory: packages/extension
- store_test_results:
path: ./test-results
test_webapp:
docker:
- image: cimg/node:18.16.0
resource_class: medium+
steps:
- checkout
- restore_cache:
keys:
- deps-v6-{{ checksum "pnpm-lock.yaml" }}
- deps-v6-{{ .Branch }}
- run:
name: Test
command: npm run test -- --ci --reporters=default --reporters=jest-junit --runInBand
environment:
JEST_JUNIT_OUTPUT_DIR: ../../test-results
working_directory: packages/webapp
- store_test_results:
path: ./test-results
test_shared:
docker:
- image: cimg/node:18.16.0
resource_class: medium+
steps:
- checkout
- restore_cache:
keys:
- deps-v6-{{ checksum "pnpm-lock.yaml" }}
- deps-v6-{{ .Branch }}
- run:
name: Test
command: npm run test -- --ci --reporters=default --reporters=jest-junit --runInBand
environment:
JEST_JUNIT_OUTPUT_DIR: ../../test-results
working_directory: packages/shared
- store_test_results:
path: ./test-results
workflows:
build:
jobs:
- install_deps
- build:
requires:
- install_deps
- test_extension:
requires:
- install_deps
- test_webapp:
requires:
- install_deps
- test_shared:
requires:
- install_deps