Skip to content

Commit

Permalink
Merge branch 'main' into revert/126320
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Mar 18, 2022
2 parents 4f4ff9a + 07cacbe commit b300178
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/label-failed-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
issues:
types:
- labeled

jobs:
issue_commented:
name: Label failed test issue
if: |
!github.event.issue.pull_request
&& github.event.label.name == 'failed-test'
runs-on: ubuntu-latest
steps:
- name: Checkout kibana-operations
uses: actions/checkout@v2
with:
repository: 'elastic/kibana-operations'
ref: main
path: ./kibana-operations
token: ${{secrets.KIBANAMACHINE_TOKEN}}

- name: Label failed test issue
working-directory: ./kibana-operations/triage
env:
GITHUB_TOKEN: ${{secrets.KIBANAMACHINE_TOKEN}}
run: |
npm install
node failed-test-label ${{github.event.issue.number}} || true
9 changes: 9 additions & 0 deletions packages/kbn-generate/templates/package/BUILD.bazel.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ PKG_REQUIRE_NAME = <%- json(pkg.name) %>
SOURCE_FILES = glob(
[
"src/**/*.ts",
<%_ if (pkg.web) { _%>
"src/**/*.tsx",
<%_ } _%>
],
exclude = [
"**/*.test.*",
Expand Down Expand Up @@ -36,6 +39,9 @@ NPM_MODULE_EXTRA_FILES = [
# "@npm//name-of-package"
# eg. "@npm//lodash"
RUNTIME_DEPS = [
<%_ if (pkg.web) { _%>
"@npm//react"
<%_ } _%>
]

# In this array place dependencies necessary to build the types, which will include the
Expand All @@ -50,6 +56,9 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"@npm//@types/node",
"@npm//@types/jest",
<%_ if (pkg.web) { _%>
"@npm//@types/react"
<%_ } _%>
]

jsts_transpiler(
Expand Down
6 changes: 6 additions & 0 deletions packages/kbn-generate/templates/package/tsconfig.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
"rootDir": "src",
"stripInternal": false,
"types": [
<%_ if (pkg.web) { _%>
"jest",
"node",
"react"
<%_ } else { _%>
"jest",
"node"
<%_ } _%>
]
},
"include": [
Expand Down

0 comments on commit b300178

Please sign in to comment.