Skip to content

Adding support for authenticate_as_service_role #39

Adding support for authenticate_as_service_role

Adding support for authenticate_as_service_role #39

Workflow file for this run

name: PGTap Tests
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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: Run test-setup.sh to generate pg_let extension file
run: ./scripts/test-setup.sh
- name: Install supabase_test_helpers extension
run: psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -f ./supabase_test_helpers_pglet.sql
env:
PGPASSWORD: postgres
- name: Move files into supabase tests directory
run: mkdir ./supabase/tests && mv ./tests/* ./supabase/tests/
- name: Run Tests
run: supabase test db