Skip to content

Commit ec13c1a

Browse files
committed
Add e2e workflow
1 parent 2243ea4 commit ec13c1a

5 files changed

Lines changed: 45 additions & 2 deletions

File tree

.github/workflows/ci-e2e.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI (e2e)
2+
3+
on:
4+
push:
5+
paths:
6+
- "packages/core/**"
7+
- "e2e/**"
8+
- ".github/workflows/ci-e2e.yaml"
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
e2e:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
with:
20+
persist-credentials: false
21+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
22+
with:
23+
run_install: false
24+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
25+
with:
26+
cache: pnpm
27+
cache-dependency-path: ./pnpm-lock.yaml
28+
node-version-file: "./package.json"
29+
- name: Install dependencies
30+
run: pnpm install
31+
- name: Install Playwright browsers
32+
run: pnpm --filter e2e exec playwright install --with-deps chromium
33+
- name: Run E2E tests
34+
run: pnpm --filter e2e test
35+
env:
36+
VITE_TAILOR_APP_URL: ${{ secrets.E2E_TAILOR_APP_URL }}
37+
VITE_TAILOR_CLIENT_ID: ${{ secrets.E2E_TAILOR_CLIENT_ID }}
38+
E2E_USER_EMAIL: ${{ secrets.E2E_USER_EMAIL }}
39+
E2E_USER_PASSWORD: ${{ secrets.E2E_USER_PASSWORD }}

.github/workflows/ci-packages.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- "packages/**"
77
- "examples/**"
88
- "docs/**"
9-
- "e2e/**"
109
- ".github/workflows/ci-packages.yaml"
1110
- ".github/actions/ci/action.yaml"
1211

e2e/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@tailor-platform/app-shell": "workspace:*",
1414
"@tailor-platform/sdk": "^1.45.1",
1515
"@tailwindcss/vite": "^4.3.0",
16+
"@types/node": "catalog:",
1617
"@types/react": "catalog:",
1718
"@types/react-dom": "catalog:",
1819
"@vitejs/plugin-react": "catalog:",

e2e/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"noEmit": true,
1010
"skipLibCheck": true,
1111
"resolveJsonModule": true,
12-
"jsx": "react-jsx"
12+
"jsx": "react-jsx",
13+
"types": ["vite/client", "node"]
1314
},
1415
"include": ["app/src", "backend/src", "backend/tailor.config.ts", "tests"]
1516
}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)