Skip to content

Commit f293907

Browse files
committed
chore: generate circleci files and update package-lock with npm v6
1 parent 2490904 commit f293907

File tree

4 files changed

+92
-14164
lines changed

4 files changed

+92
-14164
lines changed

.circleci/config.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,25 @@ jobs:
9797
name: Notify Slack on failure
9898
when: on_fail
9999
working_directory: ~/kubernetes-monitor
100+
code_formatter:
101+
machine:
102+
docker_layer_caching: true
103+
enabled: true
104+
image: ubuntu-2004:202010-01
105+
steps:
106+
- checkout
107+
- setup_node12
108+
- install_python_requests
109+
- run:
110+
command: |
111+
npm run format:check
112+
name: code formatter check
113+
- run:
114+
command: |
115+
./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
116+
name: Notify Slack on failure
117+
when: on_fail
118+
working_directory: ~/kubernetes-monitor
100119
deploy_dev:
101120
docker:
102121
- auth:
@@ -273,6 +292,25 @@ jobs:
273292
- store_artifacts:
274293
path: /tmp/logs/test/integration/proxy
275294
working_directory: ~/kubernetes-monitor
295+
lint:
296+
machine:
297+
docker_layer_caching: true
298+
enabled: true
299+
image: ubuntu-2004:202010-01
300+
steps:
301+
- checkout
302+
- setup_node12
303+
- install_python_requests
304+
- run:
305+
command: |
306+
npm run lint
307+
name: lint
308+
- run:
309+
command: |
310+
./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
311+
name: Notify Slack on failure
312+
when: on_fail
313+
working_directory: ~/kubernetes-monitor
276314
openshift3_integration_tests:
277315
machine:
278316
docker_layer_caching: true
@@ -767,44 +805,6 @@ jobs:
767805
name: Notify Slack on failure
768806
when: on_fail
769807
working_directory: ~/kubernetes-monitor
770-
lint:
771-
machine:
772-
docker_layer_caching: true
773-
enabled: true
774-
image: ubuntu-2004:202010-01
775-
steps:
776-
- checkout
777-
- setup_node12
778-
- install_python_requests
779-
- run:
780-
command: |
781-
npm run lint
782-
name: lint
783-
- run:
784-
command: |
785-
./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
786-
name: Notify Slack on failure
787-
when: on_fail
788-
working_directory: ~/kubernetes-monitor
789-
code_formatter:
790-
machine:
791-
docker_layer_caching: true
792-
enabled: true
793-
image: ubuntu-2004:202010-01
794-
steps:
795-
- checkout
796-
- setup_node12
797-
- install_python_requests
798-
- run:
799-
command: |
800-
npm run format:check
801-
name: code formatter check
802-
- run:
803-
command: |
804-
./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
805-
name: Notify Slack on failure
806-
when: on_fail
807-
working_directory: ~/kubernetes-monitor
808808
unit_tests:
809809
machine:
810810
docker_layer_caching: true
@@ -1022,19 +1022,19 @@ workflows:
10221022
ignore:
10231023
- staging
10241024
- master
1025-
- lint:
1025+
- unit_tests:
10261026
filters:
10271027
branches:
10281028
ignore:
10291029
- staging
10301030
- master
1031-
- code_formatter:
1031+
- lint:
10321032
filters:
10331033
branches:
10341034
ignore:
10351035
- staging
10361036
- master
1037-
- unit_tests:
1037+
- code_formatter:
10381038
filters:
10391039
branches:
10401040
ignore:

.circleci/config/@config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ workflows:
2828
<<: *main_branches_filter
2929
- unit_tests:
3030
<<: *main_branches_filter
31+
- lint:
32+
<<: *main_branches_filter
33+
- code_formatter:
34+
<<: *main_branches_filter
3135
- system_tests:
3236
<<: *main_branches_filter
3337
- integration_tests:

.circleci/config/jobs/@jobs.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,44 @@ build_and_upload_operator:
6565
./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
6666
when: on_fail
6767

68+
lint:
69+
machine:
70+
docker_layer_caching: true
71+
enabled: true
72+
image: ubuntu-2004:202010-01
73+
steps:
74+
- checkout
75+
- setup_node12
76+
- install_python_requests
77+
- run:
78+
command: |
79+
npm run lint
80+
name: lint
81+
- run:
82+
command: |
83+
./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
84+
name: Notify Slack on failure
85+
when: on_fail
86+
working_directory: ~/kubernetes-monitor
87+
code_formatter:
88+
machine:
89+
docker_layer_caching: true
90+
enabled: true
91+
image: ubuntu-2004:202010-01
92+
steps:
93+
- checkout
94+
- setup_node12
95+
- install_python_requests
96+
- run:
97+
command: |
98+
npm run format:check
99+
name: code formatter check
100+
- run:
101+
command: |
102+
./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
103+
name: Notify Slack on failure
104+
when: on_fail
105+
working_directory: ~/kubernetes-monitor
68106
unit_tests:
69107
machine:
70108
image: ubuntu-2004:202010-01
@@ -78,7 +116,6 @@ unit_tests:
78116
- run:
79117
name: Unit tests
80118
command: |
81-
npm run lint &&
82119
npm run build &&
83120
npm run test:unit:tap &&
84121
npm run test:unit:jest

0 commit comments

Comments
 (0)