fix: tests

This commit is contained in:
Torsten Dittmann
2024-05-15 15:02:17 +02:00
parent 7dacea3e26
commit 88d9689c68
6 changed files with 50 additions and 28 deletions
+34
View File
@@ -0,0 +1,34 @@
name: E2E
on:
pull_request:
branches: ['**']
paths-ignore:
- '**/*.md'
- 'static/**/*'
env:
VITE_STRIPE_PUBLIC_KEY: ${{ vars.VITE_STRIPE_PUBLIC_KEY }}
VITE_APPWRITE_ENDPOINT: http://appwrite.test/v1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: E2E Tests
run: npm run e2e
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 7