-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 883 Bytes
/
test.yml
File metadata and controls
42 lines (33 loc) · 883 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: Run Tests on PR
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Cache Bun Installation
uses: actions/cache@v5
with:
path: ~/.bun
key: ${{ runner.os }}-bun
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Cache Dependencies
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-deps-${{ hashFiles('bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-deps-
- name: Install All Dependencies
run: bun install
- name: Generate Prisma Client
run: bun run prisma:generate
- name: Run Tests
run: bun run test