From 1b89108122def0372a6e95395ccb7b11ef9f8746 Mon Sep 17 00:00:00 2001 From: Andy Hong Date: Thu, 3 Sep 2026 17:54:18 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20Supabase=20=EB=A7=88=EC=9D=B4=EA=B7=B8?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98=20=EB=AC=B4=EB=A3=8C=20=EA=B2=80?= =?UTF-8?q?=EC=A6=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/supabase-migrations.yml | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/supabase-migrations.yml diff --git a/.github/workflows/supabase-migrations.yml b/.github/workflows/supabase-migrations.yml new file mode 100644 index 0000000..285eb74 --- /dev/null +++ b/.github/workflows/supabase-migrations.yml @@ -0,0 +1,34 @@ +name: Supabase Migrations + +on: + pull_request: + branches: [main] + paths: + - "supabase/**" + - ".github/workflows/supabase-migrations.yml" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: supabase-migrations-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + validate: + name: Validate migrations + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Supabase CLI + uses: supabase/setup-cli@v1 + with: + version: 2.114.0 + + - name: Apply migrations to a clean local database + run: supabase db start