-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 798 Bytes
/
test.yml
File metadata and controls
42 lines (32 loc) · 798 Bytes
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
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: |
pnpm install --frozen-lockfile --force
- name: Rebuild better-sqlite3
run: |
cd node_modules/.pnpm/better-sqlite3@12.0.0/node_modules/better-sqlite3
npm rebuild
- name: Run type checking
run: pnpm run lint
- name: Run tests
run: pnpm test
- name: Build project
run: pnpm run build