-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
10,042 additions
and
4,863 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,125 +1,127 @@ | ||
version: 2.1 | ||
parameters: | ||
node-version: | ||
type: string | ||
default: "16.13.2" | ||
orbs: | ||
node: circleci/node@5.0.0 | ||
slack: circleci/slack@4.5.3 | ||
commands: | ||
notify_on_failure: | ||
steps: | ||
- slack/notify: | ||
event: fail | ||
custom: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": ":red_circle: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* build failed" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "View Job" | ||
}, | ||
"url": "${CIRCLE_BUILD_URL}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
notify_on_pass: | ||
steps: | ||
- slack/notify: | ||
event: pass | ||
custom: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": ":tada: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* was successfully built and published" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "View Job" | ||
}, | ||
"url": "${CIRCLE_BUILD_URL}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
jobs: | ||
test: | ||
docker: | ||
- image: circleci/node:16-stretch | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: << pipeline.parameters.node-version >> | ||
- run: | ||
name: Audit Dependencies | ||
command: npm audit --production --audit-level=high | ||
- node/install-packages: | ||
cache-path: ./node_modules | ||
override-ci-command: npm install | ||
- run: | ||
name: Running Mocha Tests | ||
command: npm test | ||
build: | ||
docker: | ||
- image: circleci/node:16-stretch | ||
user: root | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: << pipeline.parameters.node-version >> | ||
- setup_remote_docker: | ||
version: 19.03.13 | ||
docker_layer_caching: true | ||
# build and push Docker image | ||
- run: | ||
name: Install component-build-helper lib | ||
command: npm install -g @elastic.io/component-build-helper | ||
- run: | ||
name: Build and publish docker image | ||
command: build_component_docker | ||
- notify_on_failure | ||
- notify_on_pass | ||
workflows: | ||
test: | ||
jobs: | ||
- test: | ||
name: "Running tests" | ||
filters: | ||
tags: | ||
ignore: /.*/ | ||
publish_release: | ||
jobs: | ||
- build: | ||
name: "Build and publish docker image" | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ | ||
version: 2.1 | ||
parameters: | ||
node-version: | ||
type: string | ||
default: "18.13.0" | ||
orbs: | ||
node: circleci/node@5.0.0 | ||
slack: circleci/slack@4.5.3 | ||
commands: | ||
notify_on_failure: | ||
steps: | ||
- slack/notify: | ||
event: fail | ||
custom: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": ":red_circle: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* build failed" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "View Job" | ||
}, | ||
"url": "${CIRCLE_BUILD_URL}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
notify_on_pass: | ||
steps: | ||
- slack/notify: | ||
event: pass | ||
custom: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": ":tada: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* was successfully built and published" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "View Job" | ||
}, | ||
"url": "${CIRCLE_BUILD_URL}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
jobs: | ||
test: | ||
docker: | ||
- image: cimg/node:18.13.0 | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: << pipeline.parameters.node-version >> | ||
- node/install-packages: | ||
cache-path: ./node_modules | ||
override-ci-command: npm install | ||
- run: | ||
name: Audit Dependencies | ||
command: npm audit --production --audit-level=high | ||
- run: | ||
name: Running Mocha Tests | ||
command: npm test | ||
build: | ||
docker: | ||
- image: cimg/node:18.13.0 | ||
user: root | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: << pipeline.parameters.node-version >> | ||
- setup_remote_docker: | ||
version: 19.03.13 | ||
docker_layer_caching: true | ||
# build and push Docker image | ||
- run: | ||
name: Install component-build-helper lib | ||
command: npm install -g @elastic.io/component-build-helper | ||
- run: | ||
name: Build and publish docker image | ||
command: build_component_docker | ||
- notify_on_failure | ||
- notify_on_pass | ||
workflows: | ||
test: | ||
jobs: | ||
- test: | ||
name: "Running tests" | ||
filters: | ||
tags: | ||
ignore: /.*/ | ||
publish_release: | ||
jobs: | ||
- build: | ||
name: "Build and publish docker image" | ||
context: | ||
- componentspusher | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ELASTICIO_API_USERNAME=email@example.io | ||
ELASTICIO_API_KEY=xxxxx-xxxxx-410c-bf06-xxxxxxx | ||
ELASTICIO_API_URI=https://api.elastic.io | ||
ELASTICIO_WORKSPACE_ID=21212121212121212121212121 | ||
SECRET_ID=2121212121212121212121212 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,61 @@ | ||
module.exports = { | ||
"extends": "airbnb-base", | ||
"rules": { | ||
env: { | ||
es6: true, | ||
node: true, | ||
mocha: true, | ||
}, | ||
"env": { | ||
"node": true, | ||
"mocha": true | ||
extends: [ | ||
'airbnb-base', | ||
], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.test.js", | ||
"*.spec*" | ||
], | ||
"rules": { | ||
"no-unused-expressions": "off" | ||
} | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
rules: { | ||
'linebreak-style': 0, | ||
'import/no-extraneous-dependencies': ['error', { devDependencies: ['spec/**/*', 'spec-integration/**/*'] }], | ||
'no-plusplus': 0, | ||
'no-unused-vars': 0, | ||
'no-await-in-loop': 0, | ||
'prefer-default-export': 0, | ||
'import/prefer-default-export': 0, | ||
'import/no-import-module-exports': 0, | ||
'no-restricted-syntax': 0, | ||
'class-methods-use-this': 1, | ||
'max-len': ['error', { code: 180 }], | ||
'no-param-reassign': 1, | ||
'no-return-assign': 1, | ||
'no-use-before-define': 0, | ||
'comma-dangle': 0, | ||
'object-curly-newline': 0, | ||
camelcase: 0, | ||
'import/extensions': [ | ||
'error', | ||
'ignorePackages', | ||
{ | ||
js: 'never', | ||
jsx: 'never', | ||
ts: 'never', | ||
tsx: 'never', | ||
}, | ||
], | ||
}, | ||
settings: { | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'], | ||
}, | ||
{ | ||
"files": [ | ||
"*" | ||
], | ||
"rules": { | ||
"max-len": ["error", { "code": 180 }] | ||
|
||
} | ||
} | ||
] | ||
'import/resolver': { | ||
node: { | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: "\U0001F41B Bug Report" | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!--- | ||
How to Report Bugs and Suggest Product & Ecosystem Improvements: | ||
https://www.notion.so/elasticio/How-to-Report-Bugs-and-Suggest-Product-Ecosystem-Improvements-444733fa8bc840e6af0bd67688776576 | ||
--> | ||
|
||
# Component Bug Report | ||
|
||
## Description | ||
|
||
<!-- Description of the bug --> | ||
|
||
## Component Version | ||
* Version of the component running when the below steps to reproduce were performed | ||
* Platform version running when/installation name where the below steps were reproduced | ||
* Credentials used | ||
|
||
## Steps to Reproduce | ||
|
||
1. | ||
2. | ||
3. | ||
4. | ||
5. | ||
|
||
## Actual Result | ||
|
||
<!-- What actually happened --> | ||
|
||
## Expected Result | ||
|
||
<!-- What you expected to happen --> | ||
|
||
## Workaround(s) | ||
|
||
<!-- Any known workaround(s) to circumvent the above issue --> |
Oops, something went wrong.