mirror of
https://github.com/supabase/supabase.git
synced 2026-07-06 16:44:19 +08:00
* Make the playwright tests always succeed. * Push a change to trigger the tests. * Try moving the continue-on-error on the failed step.
50 lines
1.3 KiB
YAML
50 lines
1.3 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
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
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@v3
|
|
# if: always()
|
|
# with:
|
|
# name: playwright-report
|
|
# path: playwright-report/
|
|
# retention-days: 30
|