Supabase CI/CD #4
Workflow file for this run
This file contains hidden or 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: Validate Supabase Migrations | |
on: | |
pull_request: | |
branches: | |
- develop | |
- main | |
workflow_dispatch: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: supabase/setup-cli@v1 | |
with: | |
version: latest | |
- name: Start Supabase local development environment | |
run: supabase start | |
- name: Validate migrations | |
run: | | |
# Check if migrations can be applied without errors | |
supabase db reset | |
# Additional validation can be added here | |
echo "Migrations validated successfully" |