mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
39 lines
899 B
YAML
39 lines
899 B
YAML
name: End-to-end tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [dev]
|
|
merge_group:
|
|
|
|
jobs:
|
|
e2e:
|
|
name: Playwright
|
|
runs-on: ubuntu-latest
|
|
if: github.head_ref != 'release'
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup app
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: Run Playwright tests
|
|
run: pnpm run test:e2e:docker
|
|
env:
|
|
NODE_OPTIONS: --max-old-space-size=8192
|
|
|
|
- name: Upload report
|
|
if: ${{ !cancelled() }}
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: playwright-report
|
|
path: |
|
|
playwright-report
|
|
test-results
|
|
retention-days: 7
|