feat(board): added better statistics and metrics #2772
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Supabase CI | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Verify generated types | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
env: | |
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
SUPABASE_DB_PASSWORD: ${{ secrets.STAGING_DB_PASSWORD }} | |
STAGING_PROJECT_ID: ${{ secrets.STAGING_PROJECT_ID }} | |
STAGING_DB_URL: ${{ secrets.STAGING_DB_URL }} | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 --local > schema.gen.ts | |
if ! git diff --ignore-space-at-eol --exit-code --quiet schema.gen.ts; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git diff | |
exit 1 | |
fi |