-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (44 loc) · 1.26 KB
/
Copy pathci.yml
File metadata and controls
56 lines (44 loc) · 1.26 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
54
55
56
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# Version is taken from package.json#packageManager; do not also set `version` here
# or action-setup fails with ERR_PNPM_BAD_PM_VERSION ("Multiple versions of pnpm").
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm format:check
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm test:coverage
- run: pnpm build
e2e:
runs-on: ubuntu-latest
env:
AUTH_SECRET: some-dummy-secret-for-ci
AUTH_TRUST_HOST: "true"
TURSO_DATABASE_URL: file:local.db
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Push database schema
run: pnpm db:push
- name: Install Playwright Chromium Browser
run: pnpm exec playwright install --with-deps chromium
- name: Run E2E Smoke Tests
run: pnpm test:e2e