-
Notifications
You must be signed in to change notification settings - Fork 12
31 lines (31 loc) · 1.03 KB
/
pg_tap.yml
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
name: PGTap Tests
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: --git https://github.com/supabase/dbdev.git dbdev
- uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest
- name: Supabase Start
run: supabase init && supabase start
- name: Enable pgtle
run: psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -c "CREATE EXTENSION pg_tle;"
env:
PGPASSWORD: postgres
- name: Install supabase_test_helpers extension using dbdev cli
run: dbdev install --connection postgres://postgres:postgres@localhost:54322/postgres --path .
- name: Move files into supabase tests directory
run: mkdir ./supabase/tests && mv ./tests/* ./supabase/tests/
- name: Run Tests
run: supabase test db