-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 913 Bytes
/
Copy pathtest.yml
File metadata and controls
37 lines (30 loc) · 913 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
name: Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Cache bun install cache
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
restore-keys: bun-${{ runner.os }}-
- name: Install dependencies
run: bun install --frozen-lockfile
# No Postgres/Supabase/S3 services needed: the DB is an ephemeral in-memory PGlite started by
# the test script, and S3/Supabase are faked (see .env.test).
- name: Unit tests
run: bun run test:unit
- name: Integration tests
run: bun run test:integration