diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 285eba1..8fdef79 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,10 +23,6 @@ jobs: version: latest - name: Supabase Start run: supabase init && supabase start - - name: Install supabase_test_helpers from scripts/install-dbdev-with-test-helpers.sql (remove this once remote install enabled in dbdev CLI) - run: psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -f ./scripts/install-dbdev-with-test-helpers.sql - env: - PGPASSWORD: postgres - name: Install core extension using dbdev cli run: | ~/.cargo/bin/dbdev install --connection postgres://postgres:postgres@localhost:54322/postgres --path . @@ -71,10 +67,6 @@ jobs: supabase init echo -e "\n\n[functions.test-stripe-billing-webhooks]\nverify_jwt = false" >> supabase/config.toml supabase start - - name: Install supabase_test_helpers from scripts/install-dbdev-with-test-helpers.sql (remove this once remote install enabled in dbdev CLI) - run: psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -f ./scripts/install-dbdev-with-test-helpers.sql - env: - PGPASSWORD: postgres - name: Install core extension using dbdev cli run: | ~/.cargo/bin/dbdev install --connection postgres://postgres:postgres@localhost:54322/postgres --path . diff --git a/scripts/install-dbdev-with-test-helpers.sql b/scripts/install-dbdev-with-test-helpers.sql deleted file mode 100644 index 130b673..0000000 --- a/scripts/install-dbdev-with-test-helpers.sql +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------- ----- install dbdev ---- ----------------------- -Requires: - - pg_tle: https://github.com/aws/pg_tle - - pgsql-http: https://github.com/pramsey/pgsql-http -*/ -create extension if not exists http with schema extensions; -create extension if not exists pg_tle; -select pgtle.uninstall_extension_if_exists('supabase-dbdev'); -drop extension if exists "supabase-dbdev"; -select - pgtle.install_extension( - 'supabase-dbdev', - resp.contents ->> 'version', - 'PostgreSQL package manager', - resp.contents ->> 'sql' - ) -from http( - ( - 'GET', - 'https://api.database.dev/rest/v1/' - || 'package_versions?select=sql,version' - || '&package_name=eq.supabase-dbdev' - || '&order=version.desc' - || '&limit=1', - array[ - ( - 'apiKey', - 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJp' - || 'c3MiOiJzdXBhYmFzZSIsInJlZiI6InhtdXB0cHBsZnZpaWZyY' - || 'ndtbXR2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODAxMDczNzI' - || 'sImV4cCI6MTk5NTY4MzM3Mn0.z2CN0mvO2No8wSi46Gw59DFGCTJ' - || 'rzM0AQKsu_5k134s' - )::http_header - ], - null, - null - ) -) x, -lateral ( - select - ((row_to_json(x) -> 'content') #>> '{}')::json -> 0 -) resp(contents); -create extension "supabase-dbdev"; -select dbdev.install('supabase-dbdev'); -drop extension if exists "supabase-dbdev"; -create extension "supabase-dbdev"; - --- install test helpers -SELECT dbdev.install('basejump-supabase_test_helpers'); diff --git a/scripts/setup.sh b/scripts/setup.sh deleted file mode 100755 index ae59528..0000000 --- a/scripts/setup.sh +++ /dev/null @@ -1,9 +0,0 @@ -# install test helpers (remove once dbdev supports installing remote extensions) -psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -f ./scripts/install-dbdev-with-test-helpers.sql -# install basejump_core -~/.cargo/bin/dbdev install --connection postgres://postgres:postgres@localhost:54322/postgres --path . -# create basejump_core extension -psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -c 'CREATE EXTENSION IF NOT EXISTS basejump_core with schema extensions;' - - -