This repository was archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathconfig.yml
109 lines (107 loc) · 2.37 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
workflows:
version: 2
validate-config:
jobs:
- circle-lint
multi-test:
jobs:
- test-node10
- test-node12
test_and_publish:
jobs:
- test:
filters:
tags:
only: /.*/
- publish:
context: npm
requires:
- test
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*(-.+)?/
branches:
ignore: /.*/
static_analysis:
jobs:
- test
- coverage:
requires:
- test
- snyk:
context: snyk
requires:
- test
scheduled_e2e_test:
triggers:
- schedule:
cron: "15 * * * *"
filters:
branches:
only:
- master
- scheduled_e2e_testing
jobs:
- test-node10
- test-node12
version: 2
jobs:
circle-lint:
working_directory: ~/analytics-node
docker:
- image: node
steps:
- checkout
- run: yarn run circle-lint
node-base-test: &node-base-test
working_directory: ~/analytics-node
docker:
- image: node
steps:
- checkout
- restore_cache:
key: yarn-dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn install --frozen-lockfile
- save_cache:
key: yarn-dependency-cache-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run: yarn test
- persist_to_workspace:
root: .
paths: [.]
test-node10:
<<: *node-base-test
docker:
- image: circleci/node:10-browsers
test-node12:
<<: *node-base-test
docker:
- image: circleci/node:12-browsers
test:
<<: *node-base-test
docker:
- image: circleci/node:10-browsers
coverage:
docker:
- image: circleci/node:10-browsers
steps:
- checkout
- attach_workspace: { at: . }
- run: yarn run report-coverage
snyk:
docker:
- image: circleci/node:10-browsers
steps:
- checkout
- attach_workspace: { at: . }
- run: yarn run snyk test --severity-threshold=high
- run: yarn run snyk monitor
publish:
docker:
- image: circleci/node:10-browsers
steps:
- checkout
- attach_workspace: { at: . }
- run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
- run: npm publish .