Skip to content

Commit f085eaa

Browse files
committed
ci fixes
1 parent 487ff45 commit f085eaa

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
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",

vite.widget.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)