Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml → .github/workflows/demo-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Demo App Tests

on:
push:
Expand All @@ -7,9 +7,12 @@ on:
branches: [main]

jobs:
test:
playwright:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: demo
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
Expand All @@ -21,10 +24,10 @@ jobs:
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps chromium
- name: Install playwright browser
run: pnpm dlx playwright install --with-deps chromium
- name: Run Playwright tests
run: cd demo && pnpm test
run: pnpm test
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/widget-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Widget Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run Jest tests
run: pnpm test
- uses: actions/upload-artifact@v4
if: always()
with:
name: jest-report
path: coverage/
retention-days: 30
5 changes: 4 additions & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
"name": "airbyte-embedded-widget-demo",
"private": true,
"scripts": {
"dev": "vite"
"dev": "vite",
"test": "playwright test",
"test:ui": "playwright test --ui"
},
"license": "UNLICENSED",
"devDependencies": {
"@playwright/test": "^1.42.1",
"@types/node": "^22.13.14",
"@vitejs/plugin-basic-ssl": "^2.0.0",
"prettier": "^3.5.3",
Expand Down
38 changes: 38 additions & 0 deletions demo/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading