-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 858 Bytes
/
ci_bun.yml
File metadata and controls
39 lines (34 loc) · 858 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
name: Bun CI
on:
push:
paths-ignore:
- "*.md"
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: "1.2.0"
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
~/work/better-sqlite3-migrate/better-sqlite3-migrate/bun.lockb
key: ${{ runner.os }}-bun-cache-v5-${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-bun-cache-v5-
- name: Run tests
run: |
bun install
bun ./sql-bundle.mjs ./test/migrations
bun test