-
Notifications
You must be signed in to change notification settings - Fork 39
53 lines (41 loc) · 1.37 KB
/
e2e.yml
File metadata and controls
53 lines (41 loc) · 1.37 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
49
50
51
52
53
name: E2E Tests
on:
push:
branches:
- main
pull_request:
jobs:
e2e:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/mesh
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
working-directory: .
- name: Cache Playwright browsers
id: cache-playwright
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('apps/mesh/package.json') }}
- name: Install Playwright browsers
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: npx playwright install chromium --with-deps
- name: Install Playwright system deps
if: steps.cache-playwright.outputs.cache-hit == 'true'
run: npx playwright install-deps chromium
- name: Write CI auth config
run: |
echo '{"emailAndPassword":{"enabled":true},"socialProviders":{},"saml":{"enabled":false,"providers":[]},"emailProviders":[],"magicLinkConfig":{"enabled":false}}' > auth-config.json
- name: Create data directory
run: mkdir -p data
- name: Run database migrations
run: bun run migrate
- name: Run e2e tests
run: bun run test:e2e