Repository navigation
50 lines (46 loc) · 1.56 KB
/
Copy pathapplication.yml
File metadata and controls
50 lines (46 loc) · 1.56 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
name: Application checks
on:
pull_request:
paths:
- "apps/**"
- "packages/**"
- "plugins/**"
- "tests/**"
- "scripts/**"
- "patches/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "tsconfig.json"
- "vitest.config.ts"
- ".github/workflows/application.yml"
permissions:
contents: read
concurrency:
group: application-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
application:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Enable pnpm
run: corepack enable && corepack prepare pnpm@11.25.0 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm typecheck
- name: Check mobile sign-in and document links
run: |
pnpm --filter @doca/mobile typecheck
pnpm exec vitest run tests/mobile-session.test.ts tests/qr-login-schema.test.ts tests/mobile-document-link.test.ts --maxWorkers=2
- name: Build application
run: pnpm build
- name: Smoke-test SQLite startup, desktop authentication, Web assets and language catalogs
run: pnpm exec vitest run tests/cloud.test.ts tests/desktop-auth.test.ts tests/static-compression.test.ts tests/web-plugin-registry.test.ts tests/i18n.test.ts tests/browser-extension-background.test.ts --maxWorkers=2