mirror of
https://github.com/documenso/documenso.git
synced 2025-11-26 06:32:08 +10:00
34 lines
849 B
YAML
34 lines
849 B
YAML
name: Playwright Tests
|
|
on:
|
|
push:
|
|
branches: [feat/refresh]
|
|
pull_request:
|
|
branches: [feat/refresh]
|
|
jobs:
|
|
e2e_tests:
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
- name: Generate package-lock.json
|
|
run: npm install
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Copy env
|
|
run: cp .env.example .env
|
|
- name: Build
|
|
run: npm run build
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install --with-deps
|
|
- name: Run Playwright tests
|
|
run: npm run ci
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report/
|
|
retention-days: 30
|