Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

ci: apply migrations to a fresh database

ThieryMichela3735c6685bd
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index a0e76768..ce250dad 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -66,7 +66,23 @@ jobs:
- name: 🏷️ Typecheck
run: npm run typecheck
-
+
+ migrations:
+ name: πŸ—ƒοΈ Migrations
+ timeout-minutes: 10
+ runs-on: ubuntu-latest
+ if: ${{ !github.event.pull_request.draft || github.event_name == 'push' }}
+ steps:
+ - name: πŸ“₯ Checkout repo
+ uses: actions/checkout@v4
+
+ - name: βš™οΈ Setup supabase
+ uses: supabase/setup-cli@v1
+
+ # A fresh database applies every migration in order, then the seed.
+ - name: πŸ—ƒοΈ Apply migrations
+ run: supabase db start
+
test-app:
name: πŸ”Ž Test
runs-on: ubuntu-latest