Skip to content

Commit 15f2f55

Browse files
committed
update
1 parent 909838f commit 15f2f55

File tree

5 files changed

+279
-4188
lines changed

5 files changed

+279
-4188
lines changed

.circleci/config.yml

Lines changed: 114 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,125 @@
1-
version: 2
1+
version: 2.1
2+
parameters:
3+
node-version:
4+
type: string
5+
default: "16.13.2"
6+
orbs:
7+
node: circleci/[email protected]
8+
slack: circleci/[email protected]
9+
commands:
10+
notify_on_failure:
11+
steps:
12+
- slack/notify:
13+
event: fail
14+
custom: |
15+
{
16+
"blocks": [
17+
{
18+
"type": "section",
19+
"fields": [
20+
{
21+
"type": "mrkdwn",
22+
"text": ":red_circle: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* build failed"
23+
}
24+
]
25+
},
26+
{
27+
"type": "actions",
28+
"elements": [
29+
{
30+
"type": "button",
31+
"text": {
32+
"type": "plain_text",
33+
"text": "View Job"
34+
},
35+
"url": "${CIRCLE_BUILD_URL}"
36+
}
37+
]
38+
}
39+
]
40+
}
41+
notify_on_pass:
42+
steps:
43+
- slack/notify:
44+
event: pass
45+
custom: |
46+
{
47+
"blocks": [
48+
{
49+
"type": "section",
50+
"fields": [
51+
{
52+
"type": "mrkdwn",
53+
"text": ":tada: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* was successfully built and published"
54+
}
55+
]
56+
},
57+
{
58+
"type": "actions",
59+
"elements": [
60+
{
61+
"type": "button",
62+
"text": {
63+
"type": "plain_text",
64+
"text": "View Job"
65+
},
66+
"url": "${CIRCLE_BUILD_URL}"
67+
}
68+
]
69+
}
70+
]
71+
}
272
jobs:
373
test:
474
docker:
5-
- image: circleci/node:12-stretch
75+
- image: circleci/node:14-stretch
676
steps:
777
- checkout
8-
- restore_cache:
9-
key: dependency-cache-{{ checksum "package.json" }}
78+
- node/install:
79+
node-version: << pipeline.parameters.node-version >>
1080
- run:
11-
name: Installing Dependencies
12-
command: npm install
13-
- save_cache:
14-
key: dependency-cache-{{ checksum "package.json" }}
15-
paths:
16-
- node_modules
81+
name: Audit Dependencies
82+
command: npm audit --audit-level=high
83+
- node/install-packages:
84+
cache-path: ./node_modules
85+
override-ci-command: npm install
1786
- run:
1887
name: Running Mocha Tests
1988
command: npm test
89+
build:
90+
docker:
91+
- image: circleci/node:14-stretch
92+
user: root
93+
steps:
94+
- checkout
95+
- node/install:
96+
node-version: << pipeline.parameters.node-version >>
97+
- setup_remote_docker:
98+
version: 19.03.13
99+
docker_layer_caching: true
100+
# build and push Docker image
101+
- run:
102+
name: Install component-build-helper lib
103+
command: npm install -g @elastic.io/component-build-helper
104+
- run:
105+
name: Build and publish docker image
106+
command: build_component_docker
107+
- notify_on_failure
108+
- notify_on_pass
20109
workflows:
21-
version: 2
22-
build_and_test:
110+
test:
111+
jobs:
112+
- test:
113+
name: "Running tests"
114+
filters:
115+
tags:
116+
ignore: /.*/
117+
publish_release:
23118
jobs:
24-
- test
119+
- build:
120+
name: "Build and publish docker image"
121+
filters:
122+
branches:
123+
ignore: /.*/
124+
tags:
125+
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.2.11 (April 08, 2022)
2+
* Updated sailor version to 2.6.27
3+
14
## 1.2.10 (November 26, 2021)
25
* Updated sailor version to 2.6.26
36

component.json

Lines changed: 71 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,75 @@
11
{
2-
"title": "Webhook",
3-
"version": "1.2.10",
4-
"description": "Webhooks allow you to collect information about events as they happen in near real-time. Provide a URL, select when and where you want that URL to receive data about events on your list, and we'll send it to you as the events take place. It is recommended that you specify a URL using https.",
5-
"service": "webhook",
6-
"buildType":"docker",
7-
"docsUrl":"https://github.com/elasticio/webhook-component",
8-
"credentials": {
9-
"fields": {
10-
"auth": {
11-
"required": false,
12-
"viewClass": "WebhookAuthView"
13-
}
14-
}
15-
},
16-
"triggers": {
17-
"receive": {
18-
"title": "Receive",
19-
"help": {
20-
"description": "Receives data from an external system to a given URL to start a new execution of the flow. Each incoming request results in a new execution.",
21-
"link": "/components/webhook/index.html#receive"
22-
},
23-
"main": "./lib/triggers/receive.js",
24-
"metadata": {
25-
"in": {},
26-
"out": "./lib/schemas/metadata.out.json"
27-
}
28-
}
29-
},
30-
"actions": {
31-
"post": {
32-
"title": "Send data",
33-
"help": {
34-
"description": "Sends data to a provided URL.",
35-
"link": "/components/webhook/index.html#send-data"
36-
},
37-
"main": "./lib/actions/send.js",
38-
"deprecated": true,
39-
"fields": {
40-
"method": {
41-
"viewClass": "SelectView",
42-
"label": "HTTP Verb",
43-
"prompt": "Please select",
44-
"required": true,
45-
"model": {
46-
"POST": "POST",
47-
"PUT": "PUT"
48-
},
49-
"help": {
50-
"description": "Used to specify the HTTP request method for the given URI."
51-
}
52-
},
53-
"uri": {
54-
"viewClass": "TextFieldView",
55-
"label": "URI",
56-
"required": true,
57-
"help": {
58-
"description": "The URI to send data to."
59-
}
60-
},
61-
"secret": {
62-
"viewClass": "TextFieldView",
63-
"label": "Secret",
64-
"required": false,
65-
"help": {
66-
"description": "May be used to prove the identity of the request sender. The value provided into this field will be sent as 'X-Api-Secret' HTTP header which may be checked on the receiving system."
67-
}
68-
}
69-
},
70-
"metadata": {
71-
"in": {},
72-
"out": "./lib/schemas/metadata.out.json"
2+
"title": "Webhook",
3+
"version": "1.2.11",
4+
"description": "Webhooks allow you to collect information about events as they happen in near real-time. Provide a URL, select when and where you want that URL to receive data about events on your list, and we'll send it to you as the events take place. It is recommended that you specify a URL using https.",
5+
"service": "webhook",
6+
"docsUrl": "https://github.com/elasticio/webhook-component",
7+
"credentials": {
8+
"fields": {
9+
"auth": {
10+
"required": false,
11+
"viewClass": "WebhookAuthView"
12+
}
13+
}
14+
},
15+
"triggers": {
16+
"receive": {
17+
"title": "Receive",
18+
"help": {
19+
"description": "Receives data from an external system to a given URL to start a new execution of the flow. Each incoming request results in a new execution.",
20+
"link": "/components/webhook/index.html#receive"
21+
},
22+
"main": "./lib/triggers/receive.js",
23+
"metadata": {
24+
"in": {},
25+
"out": "./lib/schemas/metadata.out.json"
26+
}
27+
}
28+
},
29+
"actions": {
30+
"post": {
31+
"title": "Send data",
32+
"help": {
33+
"description": "Sends data to a provided URL.",
34+
"link": "/components/webhook/index.html#send-data"
35+
},
36+
"main": "./lib/actions/send.js",
37+
"deprecated": true,
38+
"fields": {
39+
"method": {
40+
"viewClass": "SelectView",
41+
"label": "HTTP Verb",
42+
"prompt": "Please select",
43+
"required": true,
44+
"model": {
45+
"POST": "POST",
46+
"PUT": "PUT"
47+
},
48+
"help": {
49+
"description": "Used to specify the HTTP request method for the given URI."
50+
}
51+
},
52+
"uri": {
53+
"viewClass": "TextFieldView",
54+
"label": "URI",
55+
"required": true,
56+
"help": {
57+
"description": "The URI to send data to."
58+
}
59+
},
60+
"secret": {
61+
"viewClass": "TextFieldView",
62+
"label": "Secret",
63+
"required": false,
64+
"help": {
65+
"description": "May be used to prove the identity of the request sender. The value provided into this field will be sent as 'X-Api-Secret' HTTP header which may be checked on the receiving system."
7366
}
7467
}
68+
},
69+
"metadata": {
70+
"in": {},
71+
"out": "./lib/schemas/metadata.out.json"
72+
}
7573
}
76-
}
74+
}
75+
}

0 commit comments

Comments
 (0)