Skip to content

Commit

Permalink
Update generate-types.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
diliburong committed Mar 8, 2024
1 parent 49a6d0b commit b349b48
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/generate-types.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: 'generate-types'
on:
push:
# name: 'generate-types'
# on:
# push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: supabase/setup-cli@v1
with:
version: latest
- run: supabase init
- run: supabase db start
- name: Verify generated types match Postgres schema
run: |
supabase gen types typescript --project-id ${{ secrets.PROJECT_REF }} --schema public > src/renderer/types/database.types.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet src/renderer/types/database.types.ts; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: supabase/setup-cli@v1
# with:
# version: latest
# - run: supabase init
# - run: supabase db start
# - name: Verify generated types match Postgres schema
# run: |
# supabase gen types typescript --project-id ${{ secrets.PROJECT_REF }} --schema public > database.types.ts
# if ! git diff --ignore-space-at-eol --exit-code --quiet src/renderer/types/database.types.ts; then
# echo "Detected uncommitted changes after build. See status below:"
# git diff
# exit 1
# fi

0 comments on commit b349b48

Please sign in to comment.