5
5
push :
6
6
branches :
7
7
- master
8
-
9
- defaults :
10
- run :
11
- working-directory : ./examples
8
+ - fix-cd
12
9
13
10
env :
14
11
NODE_OPTIONS : --max_old_space_size=6144
15
12
16
13
jobs :
17
- build :
14
+ general-examples :
18
15
runs-on : ubuntu-latest
19
16
20
17
permissions :
@@ -32,29 +29,146 @@ jobs:
32
29
export-secrets-to-environment : false
33
30
34
31
- name : Use NodeJS v14
35
- uses : actions/setup-node@v2
32
+ uses : actions/setup-node@v4
36
33
with :
37
- node-version : ' 14 '
34
+ node-version : " 14 "
38
35
39
36
- name : Check out repository
40
- uses : actions/checkout@v3
37
+ uses : actions/checkout@v4
41
38
42
- - name : Install modules
43
- run : npm ci
39
+ - name : Build general examples
40
+ working-directory : ./examples
41
+ run : |
42
+ npm ci
43
+ npm run lint
44
+ npm run build-all
44
45
45
46
- name : Build
47
+ working-directory : ./examples
46
48
run : ./bin/build-gh-pages
47
49
env :
48
50
KENDO_UI_LICENSE : ${{ secrets.KENDO_UI_LICENSE }}
49
51
50
- - name : Deploy to GH Pages
51
- uses : peaceiris/actions-gh-pages@v3
52
+ # - name: Deploy to GH Pages
53
+ # uses: peaceiris/actions-gh-pages@v3
54
+ # with:
55
+ # github_token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
56
+ # publish_dir: ./examples/dist
57
+ # user_name: "kendo-bot"
58
+ # user_email: "kendouiteam@progress.com"
59
+
60
+ standalone-examples-node18 :
61
+ runs-on : ubuntu-latest
62
+
63
+ permissions :
64
+ id-token : write # Required by Akeyless
65
+ contents : read
66
+ packages : read
67
+
68
+ steps :
69
+ - name : Import Secrets
70
+ id : import-secrets
71
+ uses : LanceMcCarthy/akeyless-action@v3
72
+ with :
73
+ access-id : ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
74
+ static-secrets : ' { "/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN" }'
75
+ export-secrets-to-environment : false
76
+
77
+ - name : Use NodeJS v18
78
+ uses : actions/setup-node@v4
79
+ with :
80
+ node-version : " 18"
81
+
82
+ - name : Check out repository
83
+ uses : actions/checkout@v4
84
+
85
+ - name : Build Coffee warehouse app
86
+ working-directory : ./examples-standalone/coffee-warehouse
87
+ run : |
88
+ npm ci
89
+ npm run build
90
+
91
+ - name : Build Finance portfolio app
92
+ working-directory : ./examples-standalone/finance-portfolio
93
+ run : |
94
+ npm ci
95
+
96
+ - name : Build Electron dashboard app
97
+ working-directory : ./examples-standalone/electron-dashboard
98
+ run : |
99
+ npm ci
100
+ npm rebuild node-sass
101
+ npm run build
102
+
103
+ - name : Build Grid & Charts integration app
104
+ working-directory : ./examples-standalone/grid-charts-integration
105
+ run : |
106
+ npm ci
107
+ # npm run lint
108
+
109
+ - name : Build Grid Live Data app
110
+ working-directory : ./examples-standalone/grid-live-data
111
+ run : |
112
+ npm ci
113
+ npm run build
114
+
115
+ - name : Spreadsheet Event Budgeting app
116
+ working-directory : ./examples-standalone/spreadsheet-event-budgeting
117
+ run : |
118
+ npm ci
119
+ npm run build
120
+
121
+ # - name: Deploy to GH Pages
122
+ # uses: peaceiris/actions-gh-pages@v3
123
+ # with:
124
+ # github_token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
125
+ # publish_dir: ./examples/dist
126
+ # user_name: "kendo-bot"
127
+ # user_email: "kendouiteam@progress.com"
128
+
129
+ standalone-examples-node14 :
130
+ runs-on : ubuntu-latest
131
+
132
+ steps :
133
+ - name : Use NodeJS v14
134
+ uses : actions/setup-node@v4
52
135
with :
53
- github_token : ${{ steps.import-secrets.outputs.GH_TOKEN }}
54
- publish_dir : ./examples/dist
55
- user_name : ' kendo-bot'
56
- user_email : ' kendouiteam@progress.com'
136
+ node-version : " 14"
137
+
138
+ - name : Check out repository
139
+ uses : actions/checkout@v4
140
+
141
+ - name : Build Angular Universal Node example
142
+ working-directory : ./examples-standalone/angular-universal/node_sample_application
143
+ run : |
144
+ npm ci
145
+ npm run lint
146
+
147
+ - name : Build Angular Universal ASP.NET core example
148
+ working-directory : ./examples-standalone/angular-universal/aspnet_core_sample_application/ClientApp
149
+ run : |
150
+ npm ci
151
+ npm run lint
152
+
153
+ - name : Build ASP.NET Core Data client app
154
+ working-directory : ./examples-standalone/aspnetcore-data/ClientApp
155
+ run : |
156
+ npm ci
157
+ npm run lint
57
158
58
- - name : Cleanup
59
- run : git clean -xdf
159
+ - name : Build ASP.NET Core Upload client app
160
+ working-directory : ./examples-standalone/aspnetcore-upload/ClientApp
161
+ run : |
162
+ npm ci
163
+ # npm run lint
164
+ - name : Build ASP.NET Web API client app
165
+ working-directory : ./examples-standalone/aspnetwebapi-data/ClientApp
166
+ run : |
167
+ npm ci
168
+ npm run lint
60
169
170
+ - name : Build Dialogflow app
171
+ working-directory : ./examples-standalone/dialogflow-integration/client
172
+ run : |
173
+ npm ci
174
+ npm run build
0 commit comments