From baff6ebd46c65975d72b1d3728d96d3cf7d00d7e Mon Sep 17 00:00:00 2001 From: Kristian Antrobus Date: Thu, 10 Oct 2024 09:38:51 -0500 Subject: [PATCH 1/4] chore(ci): test commit --- .github/workflows/on_pull_request_supabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on_pull_request_supabase.yml b/.github/workflows/on_pull_request_supabase.yml index 47fcdc2a56..f277faeca6 100644 --- a/.github/workflows/on_pull_request_supabase.yml +++ b/.github/workflows/on_pull_request_supabase.yml @@ -61,7 +61,7 @@ jobs: - name: Run migrations on staging run: yarn workspace @twilio-paste/backend supabase db push - - name: Start Supabase local development setup + - name: Start Supabase local development setup breaking step run: yarn start:backend:dev - name: Verify generated types are checked in From fbdbad6dd88a0f715b8ee2b133dc69c7fb10c186 Mon Sep 17 00:00:00 2001 From: Kristian Antrobus Date: Thu, 10 Oct 2024 09:52:40 -0500 Subject: [PATCH 2/4] chore(ci): revert test commit --- .github/workflows/on_pull_request_supabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on_pull_request_supabase.yml b/.github/workflows/on_pull_request_supabase.yml index f277faeca6..47fcdc2a56 100644 --- a/.github/workflows/on_pull_request_supabase.yml +++ b/.github/workflows/on_pull_request_supabase.yml @@ -61,7 +61,7 @@ jobs: - name: Run migrations on staging run: yarn workspace @twilio-paste/backend supabase db push - - name: Start Supabase local development setup breaking step + - name: Start Supabase local development setup run: yarn start:backend:dev - name: Verify generated types are checked in From e0364a950d41c04f1ccc46de2e6e273cc15a44fb Mon Sep 17 00:00:00 2001 From: Kristian Antrobus Date: Thu, 10 Oct 2024 09:54:35 -0500 Subject: [PATCH 3/4] chore(ci): test for prod supabase CI --- .github/workflows/on_merge_to_main_supabase.yml | 1 - .github/workflows/update_docs_embed.yml | 12 ++++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on_merge_to_main_supabase.yml b/.github/workflows/on_merge_to_main_supabase.yml index 33c534b354..06559b5727 100644 --- a/.github/workflows/on_merge_to_main_supabase.yml +++ b/.github/workflows/on_merge_to_main_supabase.yml @@ -8,7 +8,6 @@ on: jobs: deploy: - if: ${{ false }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/update_docs_embed.yml b/.github/workflows/update_docs_embed.yml index 2a490f2d4e..a802286877 100644 --- a/.github/workflows/update_docs_embed.yml +++ b/.github/workflows/update_docs_embed.yml @@ -63,11 +63,15 @@ jobs: if: steps.yarn_cache_id.outputs.cache-hit != 'true' || steps.node_modules_cache_id.outputs.cache-hit != 'true' run: yarn install --immutable - # - name: Link Supabase project - # run: yarn workspace @twilio-paste/backend supabase link --project-ref $PROJECT_ID + - uses: supabase/setup-cli@v1 + with: + version: latest + + - name: Link Supabase project + run: yarn workspace @twilio-paste/backend supabase link --project-ref $PROJECT_ID - # - name: Run migrations - # run: yarn workspace @twilio-paste/backend supabase db push + - name: Run migrations + run: yarn workspace @twilio-paste/backend supabase db push - name: Update embeddings if: ${{ !inputs.refresh }} From a08014188148ab34ff3e2db5bde7ce5e370e4e10 Mon Sep 17 00:00:00 2001 From: Kristian Antrobus Date: Thu, 10 Oct 2024 10:02:02 -0500 Subject: [PATCH 4/4] chore(ci): optimize for workflow testing --- .github/workflows/on_merge_to_main_supabase.yml | 2 ++ .github/workflows/update_docs_embed.yml | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/on_merge_to_main_supabase.yml b/.github/workflows/on_merge_to_main_supabase.yml index 06559b5727..a87cd5a1bf 100644 --- a/.github/workflows/on_merge_to_main_supabase.yml +++ b/.github/workflows/on_merge_to_main_supabase.yml @@ -14,6 +14,8 @@ jobs: SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_PRODUCTION_DB_PASSWORD }} SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PRODUCTION_PROJECT_ID }} + SUPABASE_URL: ${{ secrets.SUPABASE_PRODUCTION_URL }} + SUPABASE_KEY: ${{ secrets.SUPABASE_PRODUCTION_KEY }} steps: - name: Checkout Repo diff --git a/.github/workflows/update_docs_embed.yml b/.github/workflows/update_docs_embed.yml index a802286877..916cb032c7 100644 --- a/.github/workflows/update_docs_embed.yml +++ b/.github/workflows/update_docs_embed.yml @@ -73,10 +73,10 @@ jobs: - name: Run migrations run: yarn workspace @twilio-paste/backend supabase db push - - name: Update embeddings - if: ${{ !inputs.refresh }} - run: yarn generate:embeddings + # - name: Update embeddings + # if: ${{ !inputs.refresh }} + # run: yarn generate:embeddings - - name: Refresh embeddings - if: ${{ inputs.refresh }} - run: yarn generate:embeddings:refresh + # - name: Refresh embeddings + # if: ${{ inputs.refresh }} + # run: yarn generate:embeddings:refresh