Skip to content

chore(deps): node 20 and supabase updates #15

chore(deps): node 20 and supabase updates

chore(deps): node 20 and supabase updates #15

name: verify supabase types
on:
pull_request:
branches:
- develop
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
# Retrieve <project-id> from dashboard url: https://app.supabase.com/project/<project-id>
PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
with:
version: 2.2.1
- name: Start Supabase local development setup
run: supabase start
- name: Verify generated types are checked in
run: |
supabase gen types typescript --local > src/types/database-generated.types.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet ./src/types/database-generated.types.ts; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi