-
-
Notifications
You must be signed in to change notification settings - Fork 56
35 lines (34 loc) · 1.31 KB
/
test_base_sql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on:
push:
branches:
- 'main'
jobs:
test_base_sql:
runs-on: ubuntu-latest
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
name: "Test if base.sql is valid"
steps:
- name: "Checkout capgo"
uses: actions/checkout@v4
- name: Install Supabase CLI
with:
version: 1.178.2
uses: supabase/setup-cli@v1
- name: Set env PROD
if: ${{ !contains(github.ref, '-alpha.') }}
run: echo "SUPABASE_DB_PASSWORD=${{ secrets.SUPABASE_DB_PASS }}" >> $GITHUB_ENV
- name: Set env ALPHA
if: ${{ contains(github.ref, '-alpha.') }}
run: echo "SUPABASE_DB_PASSWORD=${{ secrets.SUPABASE_DB_PASS_ALPHA }}" >> $GITHUB_ENV
- name: 🍜 Prepare Supabase PROD
run: supabase link --project-ref xvwzpoazmxkqosrdewyv
if: ${{ !contains(github.ref, '-alpha.') }}
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_TOKEN }}
- name: 🍜 Prepare Supabase ALPHA
run: supabase link --project-ref aucsybvnhavogdmzwtcw
if: ${{ contains(github.ref, '-alpha.') }}
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_TOKEN }}
- name: Run Supabase Start
run: ENV=local supabase start -x studio,imgproxy,inbucket,logflare --ignore-health-check