Skip to content

debug output folder #97

debug output folder

debug output folder #97

Workflow file for this run

name: E2E Tests
on:
push:
branches: ["*"]
pull_request:
branches: [main]
jobs:
build-and-test:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Create dummy GeoLite2 City database
run: touch ./backend/GeoLite2-City.mmdb
- name: Build Docker Image
run: docker build -t stonith404/pocket-id .
- name: Run Docker Container
run: docker run -d --name pocket-id -p 80:80 --env-file .env.test stonith404/pocket-id
- name: Install frontend dependencies
working-directory: ./frontend
run: npm ci
- name: Install Playwright Browsers
working-directory: ./frontend
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
working-directory: ./frontend
run: npx playwright test
- name: List report test files
if: always()
run: ls -la frontend/tests
- name: List frontend directory
if: always()
run: ls -la frontend
- name: List root directory
if: always()
run: ls -la
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: frontend/tests/.report
retention-days: 15