-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (39 loc) · 1.13 KB
/
test-database.yaml
File metadata and controls
40 lines (39 loc) · 1.13 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
name: Database tests
on:
pull_request:
paths:
- "packages/database/**"
env:
SUPABASE_USE_DB: local
SUPABASE_PROJECT_ID: test
GITHUB_TEST: test
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.15.1
run_install: false
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- name: Install Dependencies
run: pnpm install --frozen-lockfile
# - name: Get supabase version
# working-directory: ./packages/database
# run: echo "SUPABASE_VERSION=$(./node_modules/.bin/supabase --version)" >> $GITHUB_ENV
# - name: Cache Docker images.
# uses: AndreKurait/docker-cache@0.6.0
# with:
# key: docker-${{ runner.os }}-${{ env.SUPABASE_VERSION }}
- name: Setup database
working-directory: ./packages/database
run: pnpm run setup
- name: Serve and run tests
working-directory: ./packages/database
run: pnpm run test:withserve