-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
136 lines (128 loc) · 3.23 KB
/
Copy pathconfig.yml
File metadata and controls
136 lines (128 loc) · 3.23 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: 2.1
orbs:
node: circleci/node@4.3.0
docker: circleci/docker@1.5.0
codecov: codecov/codecov@1.2.0
jobs:
build:
docker:
- image: cimg/node:15.14.0
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run: yarn run build
- store_artifacts:
path: ./dist
lint-prettier:
docker:
- image: cimg/node:15.14.0
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run: yarn run lint:prettier
lint-eslint:
docker:
- image: cimg/node:15.14.0
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- restore_cache:
key: eslint-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run: yarn run lint:eslint --cache --format junit --output-file ./junit/eslint.xml
- save_cache:
key: eslint-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- .eslintcache
- store_test_results:
path: ./junit
ts-check:
docker:
- image: cimg/node:15.14.0
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run: yarn run ts-check
test-small:
docker:
- image: cimg/node:15.14.0
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run:
command: |
yarn run test:small --ci --runInBand \
--forceExit \
--reporters=default --reporters=jest-junit \
--testResultsProcessor=jest-junit
environment:
JEST_JUNIT_OUTPUT_DIR: ./junit
JEST_JUNIT_OUTPUT_NAME: jest.xml
- store_test_results:
path: ./junit
- store_artifacts:
path: ./coverage
- codecov/upload:
flags: small
file: ./coverage/lcov.info
test-medium:
docker:
- image: cimg/node:15.14.0
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run:
command: |
yarn run test:medium --ci --runInBand \
--forceExit \
--reporters=default --reporters=jest-junit \
--testResultsProcessor=jest-junit
environment:
JEST_JUNIT_OUTPUT_DIR: ./junit
JEST_JUNIT_OUTPUT_NAME: jest.xml
- store_test_results:
path: ./junit
- store_artifacts:
path: ./coverage
- codecov/upload:
flags: medium
file: ./coverage/lcov.info
workflows:
version: 2
main:
jobs:
- lint-eslint
- lint-prettier
- docker/hadolint:
dockerfiles: Dockerfile
- ts-check
- test-small:
requires:
- ts-check
- test-medium:
requires:
- ts-check
- build:
requires:
- lint-eslint
- lint-prettier
- ts-check
- test-small
- test-medium
- docker/publish:
context:
- ghcr
requires:
- docker/hadolint
- build
filters:
branches:
only: develop
image: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
registry: ghcr.io
tag: develop