File tree Expand file tree Collapse file tree 10 files changed +8883
-11929
lines changed Expand file tree Collapse file tree 10 files changed +8883
-11929
lines changed Original file line number Diff line number Diff line change 1
- name : Botonic test all packages
1
+ name : Botonic CI test all packages
2
2
3
3
on :
4
4
workflow_dispatch :
49
49
PACKAGE_NAME : Botonic plugin-dialogflow tests
50
50
PACKAGE : botonic-plugin-dialogflow
51
51
UNIT_TEST_COMMAND : npm run test_ci
52
+ BUILD_COMMAND : ' cd ../botonic-core && npm run build && cd ../botonic-plugin-dialogflow && npm run build'
52
53
PUBLISH_TESTS_RESULTS : ' yes'
53
54
NEEDS_CODECOV_UPLOAD : ' yes'
54
55
68
69
with :
69
70
PACKAGE_NAME : Botonic plugin-google-analytics tests
70
71
PACKAGE : botonic-plugin-google-analytics
71
- BUILD_COMMAND : ' '
72
+ BUILD_COMMAND : ' cd ../botonic-core && npm run build && cd ../botonic-plugin-google-analytics && npm run build '
72
73
UNIT_TEST_COMMAND : ' '
73
74
74
75
botonic-plugin-inbenta-tests :
@@ -113,4 +114,5 @@ jobs:
113
114
with :
114
115
PACKAGE_NAME : Botonic react tests
115
116
PACKAGE : botonic-react
117
+ BUILD_COMMAND : ' cd ../botonic-core && npm run build && cd ../botonic-react && npm run build'
116
118
NEEDS_CODECOV_UPLOAD : ' yes'
Original file line number Diff line number Diff line change 44
44
required : false
45
45
46
46
jobs :
47
- bot -tests :
47
+ botonic -tests :
48
48
name : ${{ inputs.PACKAGE_NAME }} tests
49
49
runs-on : ubuntu-latest
50
50
steps :
51
51
- name : Checking out to current branch
52
- uses : actions/checkout@v3
52
+ uses : actions/checkout@v4
53
53
54
54
- name : Setting up node
55
- uses : actions/setup-node@v3
55
+ uses : actions/setup-node@v4
56
56
with :
57
57
node-version : ${{ inputs.NODE_VERSION }}
58
58
59
59
- name : Setting up cache
60
- uses : actions/cache@v2
60
+ uses : actions/cache@v3
61
61
with :
62
62
path : ~/.npm
63
63
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
75
75
role-duration-seconds : 900
76
76
role-session-name : HubtypeCITests
77
77
78
- - name : Install dev dependencies
79
- run : (cd ./packages/${{ inputs.PACKAGE }} && npm install -D)
78
+ - name : Install dependencies
79
+ run : npm install
80
80
81
81
- name : Build
82
82
if : ${{ inputs.BUILD_COMMAND != '' }}
95
95
CONTENTFUL_TEST_MANAGE_TOKEN : ${{ secrets.CONTENTFUL_TEST_MANAGE_TOKEN }}
96
96
97
97
- name : Verify lint
98
- run : (cd ./packages/${{ inputs.PACKAGE }} && npm run lint_ci )
98
+ run : (cd ./packages/${{ inputs.PACKAGE }} && npm run lint_core )
99
99
100
100
- name : Publish Unit Test Results
101
101
if : ${{ inputs.PUBLISH_TESTS_RESULTS != '' && always() }}
Original file line number Diff line number Diff line change 14
14
with :
15
15
PACKAGE_NAME : Botonic plugin-dialogflow tests
16
16
PACKAGE : botonic-plugin-dialogflow
17
+ BUILD_COMMAND : ' cd ../botonic-core && npm run build && cd ../botonic-plugin-dialogflow && npm run build'
17
18
UNIT_TEST_COMMAND : npm run test_ci
18
19
PUBLISH_TESTS_RESULTS : ' yes'
19
20
NEEDS_CODECOV_UPLOAD : ' yes'
Original file line number Diff line number Diff line change 14
14
with :
15
15
PACKAGE_NAME : Botonic plugin-google-analytics tests
16
16
PACKAGE : botonic-plugin-google-analytics
17
- BUILD_COMMAND : ' '
17
+ BUILD_COMMAND : ' cd ../botonic-core && npm run build && cd ../botonic-plugin-google-analytics && npm run build '
18
18
UNIT_TEST_COMMAND : ' '
Original file line number Diff line number Diff line change 14
14
with :
15
15
PACKAGE_NAME : Botonic react tests
16
16
PACKAGE : botonic-react
17
+ BUILD_COMMAND : ' cd ../botonic-core && npm run build && cd ../botonic-react && npm run build'
17
18
NEEDS_CODECOV_UPLOAD : ' yes'
Original file line number Diff line number Diff line change @@ -27,12 +27,6 @@ repos:
27
27
language : system
28
28
files : ^packages/botonic-core/
29
29
30
- - id : core-d-ts
31
- name : core-d-ts
32
- entry : scripts/qa/old/lint-d-ts.sh packages/botonic-core
33
- language : system
34
- files : ^packages/botonic-core/src/.*\.d\.ts
35
-
36
30
- id : contentful
37
31
name : contentful
38
32
entry : scripts/qa/old/lint-package.sh packages/botonic-plugin-contentful
@@ -81,12 +75,6 @@ repos:
81
75
language : system
82
76
files : ^packages/botonic-react/
83
77
84
- - id : react-d-ts
85
- name : react-d-ts
86
- entry : scripts/qa/old/lint-d-ts.sh packages/botonic-react
87
- language : system
88
- files : ^packages/botonic-react/src/.*\.d\.ts
89
-
90
78
- id : google-analytics
91
79
name : google-analytics
92
80
entry : scripts/qa/old/lint-package.sh packages/botonic-plugin-google-analytics
@@ -105,12 +93,6 @@ repos:
105
93
language : system
106
94
files : ^docs/
107
95
108
- - id : plugin-intent-classification
109
- name : plugin-intent-classification
110
- entry : scripts/qa/old/lint-package.sh packages/botonic-plugin-intent-classification
111
- language : system
112
- files : ^packages/botonic-plugin-intent-classification/
113
-
114
96
- id : plugin-flow-builder
115
97
name : plugin-flow-builder
116
98
entry : scripts/qa/old/lint-package.sh packages/botonic-plugin-flow-builder
You can’t perform that action at this time.
0 commit comments