mirror of
https://github.com/supabase/supabase.git
synced 2026-07-04 08:34:30 +08:00
* Add an API page for run-lints endpoint. * Fix the playwright test. * Make the check mandatory in the github action. * Fix a console.log. * Use a more stable way of waiting for buttons before clicking them. * Add helper method for dismissing toasts. * Wait for the other toast. * Try and fix the flakiness of the toasts. * Minor fix. * Upload artifacts at the end of the github action run. * Fix yaml stuff. * Use the newer action for uploading. Shorten the retention period to 7 days. * Add waitForResponse for the entity types API call. * snapshot. * Wait for the page to be loaded. * Make the timeout bigger when waiting for response. * Try to fix the timeouts. * Minor restructuring of the test. * Add another test and few minor todo tests. * Fix the table names. * Don't render hcaptcha in test mode. * Expand the test to include sorting and filtering. * Add a test for checking if the other schemas are can be listed. * Make the sort popover button more stable. * Fix a unused forward ref in the NavMenuItem component. * Don't render the Toaster container when in test mode. * Simplify starting the dev server when testing. * Fix all inputs to have proper test ids. * Fix the command for testing.
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Playwright Tests
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'apps/studio/**'
|
|
- 'package-lock.json'
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- 'apps/studio/**'
|
|
- 'package-lock.json'
|
|
|
|
# Cancel old builds on new commit for same workflow + branch/PR
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'npm'
|
|
- uses: supabase/setup-cli@v1
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install --with-deps
|
|
- name: Run Playwright tests
|
|
run: npm run test:playwright
|
|
# mark the action as succeeded even if the tests failed. This is temporarily until we make the tests more stable.
|
|
# continue-on-error: true
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-tests/playwright-report/
|
|
retention-days: 7
|