-
Notifications
You must be signed in to change notification settings - Fork 38
78 lines (60 loc) · 1.93 KB
/
Copy pathbuild.yml
File metadata and controls
78 lines (60 loc) · 1.93 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build `better-auth-cloudflare` library
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.10.0
run_install: false
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Unit tests
run: pnpm test:unit
- name: Typecheck
run: pnpm typecheck
compatibility:
name: Better Auth ${{ matrix.better_auth }} compatibility
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
better_auth: ["1.5.6", "1.6.30"]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.10.0
run_install: false
- name: Install locked dependencies
run: pnpm install --frozen-lockfile
- name: Select Better Auth ${{ matrix.better_auth }}
run: >-
pnpm add --save-dev --save-exact
better-auth@${{ matrix.better_auth }}
@better-auth/drizzle-adapter@${{ matrix.better_auth }}
- name: Build
run: pnpm build
- name: Unit tests
run: pnpm test:unit
- name: Typecheck
run: pnpm typecheck