Updated setup to allow more customization, remove database.dev #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
pg_tap_tests: | |
name: PGTap Tests | |
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: Setup supabase testing | |
run: | | |
psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -f .github/workflows/setup-testing.sql | |
env: | |
PGPASSWORD: postgres | |
- name: Run Tests | |
run: supabase test db |