-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (43 loc) Β· 1.52 KB
/
pr-check.yml
File metadata and controls
56 lines (43 loc) Β· 1.52 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: PR Check
on:
pull_request:
branches: [main, staging]
push:
branches: [main, staging]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Lint, Type Check & Build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: π₯ Checkout
uses: actions/checkout@v4
- name: π Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: π¦ Install dependencies
run: bun install --frozen-lockfile
- name: π Lint
run: bun run lint
- name: π¨ Format check
run: bun run format:check
- name: π Type check (webapp)
run: bun run typecheck:webapp
- name: π Type check (admin)
run: bun run typecheck:admin
- name: π Type check (backend)
run: bun run typecheck:backend
- name: ποΈ Build webapp
run: bun run --filter @docs.plus/webapp build:local
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL || 'http://localhost:54321' }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY || 'dummy-key' }}
- name: ποΈ Build admin
run: bun run --filter @docs.plus/admin-dashboard build:local
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL || 'http://localhost:54321' }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY || 'dummy-key' }}