Merge pull request #520 from hpi-studyu/feat/multimodal-revised #4
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: Test Supabase | |
on: | |
push: | |
paths: | |
- "database/**" | |
- "docker/**" | |
workflow_dispatch: | |
jobs: | |
pgtap: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: supabase/postgres:15.1.0.90 | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Seed database | |
run: cp database/studyu-schema.sql docker/supabase/seed.sql | |
- name: Set up Supabase CLI | |
uses: supabase/setup-cli@v1 | |
with: | |
version: latest | |
- name: Initialize Supabase | |
working-directory: docker | |
run: | | |
supabase db start | |
- name: Run Supabase Tests | |
working-directory: docker | |
run: | | |
supabase test db |