Skip to content

chore(Root): add tests and lint to supabase #3

chore(Root): add tests and lint to supabase

chore(Root): add tests and lint to supabase #3

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- "feature/**"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest
- name: Init Supabase local development setup
run: supabase init
- name: Start Supabase local development setup
run: supabase db start
- name: Run Supabase tests locally
run: supabase test
- name: Run Supabase lint locally
run: supabase lint
- name: Verify generated types are checked in
run: |
supabase gen types typescript --local > database.types.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet types.gen.ts; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi