Update Supabase server instructions and scripts

Updated README.md and scripts to separate the 'web application' and 'Supabase server' in the development process. Modified package.json to include specific scripts for starting, stopping, and generating the Supabase schema. Also adjusted GitHub workflow to start Supabase server before running the app and reduced retention of Playwright report artifacts from 30 to 7 days.
This commit is contained in:
giancarlo
2024-04-11 17:01:27 +08:00
parent 49c050c92b
commit 473de45f19
4 changed files with 48 additions and 4 deletions

View File

@@ -62,10 +62,19 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec ./apps/e2e/node_modules/.bin/playwright install --with-deps
- name: Supabase CLI
uses: supabase/setup-cli@v1
- name: Supabase Server
run: pnpm run supabase:web:start -- -x studio,migra,deno-relay,pgadmin-schema-diff,imgproxy,logflare
- name: Run App
run: pnpm run dev
run: pnpm run dev &
- name: Run Playwright tests
run: pnpm run test
- uses: actions/upload-artifact@v4
@@ -73,4 +82,4 @@ jobs:
with:
name: playwright-report
path: playwright-report/
retention-days: 30
retention-days: 7