File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ jobs:
103103 uses : actions/upload-artifact@v4
104104 with :
105105 name : widget-build
106- path : dist/widget.*
106+ path : |
107+ dist/widget.*
108+ dist/style.css
107109 retention-days : 1
108110
109111 test-widget :
@@ -127,11 +129,19 @@ jobs:
127129 name : widget-build
128130 path : dist/
129131
132+ - name : Verify downloaded files
133+ run : |
134+ echo "Contents of dist directory:"
135+ ls -la dist/
136+ echo "Checking for required files..."
137+ test -f dist/widget.umd.js || (echo "widget.umd.js not found!" && exit 1)
138+ test -f dist/style.css || (echo "style.css not found!" && exit 1)
139+
130140 - name : Install Playwright
131141 run : npx playwright install chromium
132142
133143 - name : Run widget tests
134- run : npm run test:ci
144+ run : npm run test:ci:only
135145
136146 - name : Upload test results
137147 if : always()
Original file line number Diff line number Diff line change 4040 "test" : " npm run test:widget" ,
4141 "test:widget" : " npm run build:widget && playwright test" ,
4242 "test:widget:ui" : " npm run build:widget && playwright test --ui" ,
43- "test:serve" : " serve -s . -p 3000" ,
44- "test:ci" : " npm run build:widget && playwright test --reporter=list"
43+ "test:serve" : " serve -s . -p 3000 --no-clean-urls" ,
44+ "test:ci" : " npm run build:widget && playwright test --reporter=list" ,
45+ "test:ci:only" : " playwright test --reporter=list"
4546 },
4647 "author" : {
4748 "name" : " Vapi AI" ,
Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ export default defineConfig({
2525 external : [ ] ,
2626 output : {
2727 globals : { } ,
28- name : 'WidgetLoader' ,
29- footer :
30- 'if(typeof window !== "undefined" && typeof WidgetLoader !== "undefined") { window.WidgetLoader = WidgetLoader; }' ,
3128 } ,
3229 } ,
3330 // Ensure all CSS is bundled into a single file for embedding
You can’t perform that action at this time.
0 commit comments