Skip to content

Commit f5f3461

Browse files
authored
Merge pull request #86 from elasticio/sailor-update
update sailor
2 parents 7ba2c67 + d22cd6f commit f5f3461

File tree

5 files changed

+360
-371
lines changed

5 files changed

+360
-371
lines changed

.circleci/config.yml

Lines changed: 118 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,125 @@
1-
# Javascript Node CircleCI 2.0 configuration file
2-
#
3-
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4-
#
5-
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+
}
672
jobs:
73+
test:
74+
docker:
75+
- image: circleci/node:14-stretch
76+
steps:
77+
- checkout
78+
- node/install:
79+
node-version: << pipeline.parameters.node-version >>
80+
- run:
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
86+
- run:
87+
name: Running Mocha Tests
88+
command: npm test
789
build:
890
docker:
9-
# specify the version you desire here
10-
- image: circleci/node:12-stretch
11-
12-
# Specify service dependencies here if necessary
13-
# CircleCI maintains a library of pre-built images
14-
# documented at https://circleci.com/docs/2.0/circleci-images/
15-
# - image: circleci/mongo:3.4.4
16-
17-
working_directory: ~/repo
18-
91+
- image: circleci/node:14-stretch
92+
user: root
1993
steps:
2094
- checkout
21-
22-
# Download and cache dependencies
23-
- restore_cache:
24-
keys:
25-
- v1-dependencies-{{ checksum "package.json" }}
26-
# fallback to using the latest cache if no exact match is found
27-
- v1-dependencies-
28-
29-
- run: npm install
30-
31-
- save_cache:
32-
paths:
33-
- node_modules
34-
key: v1-dependencies-{{ checksum "package.json" }}
35-
36-
# run tests!
37-
- run: npm test
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
38109
workflows:
39-
version: 2
40-
build_and_test:
110+
test:
111+
jobs:
112+
- test:
113+
name: "Running tests"
114+
filters:
115+
tags:
116+
ignore: /.*/
117+
publish_release:
41118
jobs:
42-
- build
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.4.1 (April 08, 2022)
2+
* Update Sailor version to 2.6.27
3+
* Get rid of vulnerabilities in dependencies
4+
* Add component pusher job to Circle.ci config
5+
16
## 1.4.0 (November 26, 2021)
27
* Update `Re-assembled message` action: Make Message ID optional
38
* Update sailor version to 2.6.26

component.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"title": "Splitter",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Splits a message into multiple messages.",
5-
"buildType":"docker",
65
"actions": {
76
"split": {
87
"deprecated": true,
@@ -48,7 +47,11 @@
4847
"viewClass": "SelectView",
4948
"label": "Behavior",
5049
"required": true,
51-
"model": {"groupSize": "Produce Groups of Fixed Size (Don't Emit Partial Groups)", "timeout": "Group All Incoming Messages", "groupSize&timeout": "Produce Groups of Fixed Size (Emit Partial Groups)"},
50+
"model": {
51+
"groupSize": "Produce Groups of Fixed Size (Don't Emit Partial Groups)",
52+
"timeout": "Group All Incoming Messages",
53+
"groupSize&timeout": "Produce Groups of Fixed Size (Emit Partial Groups)"
54+
},
5255
"prompt": "Select behavior"
5356
}
5457
}

0 commit comments

Comments
 (0)