-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (45 loc) · 1.67 KB
/
ci-e2e.yaml
File metadata and controls
48 lines (45 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI (e2e)
on:
push:
paths:
- "packages/core/**"
- "e2e/**"
- ".github/workflows/ci-e2e.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.51.1-noble
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
# Running in a container causes git "dubious ownership" errors because the
# workspace owner differs from the container user. Mark it as safe so that
# lefthook install (triggered by pnpm prepare) can run git commands.
- name: Fix git ownership
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
cache: pnpm
cache-dependency-path: ./pnpm-lock.yaml
node-version-file: "./package.json"
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm exec turbo run build
- name: Lint & Type-check
run: pnpm exec turbo run lint type-check --filter=e2e
- name: Run E2E tests
run: pnpm --filter e2e test:e2e
env:
VITE_TAILOR_APP_URL: ${{ secrets.E2E_TAILOR_APP_URL }}
VITE_TAILOR_CLIENT_ID: ${{ secrets.E2E_TAILOR_CLIENT_ID }}
E2E_USER_EMAIL: ${{ secrets.E2E_USER_EMAIL }}
E2E_USER_PASSWORD: ${{ secrets.E2E_USER_PASSWORD }}