Skip to content

[CI/CD] Integrate Playwright E2E Suite into GitHub Actions #99

Description

@BeSovereign

Summary

Ensure that E2E tests run automatically as part of our CI/CD pipeline to prevent UI regressions.

Technical Requirements

  • Workflow File: Modify .github/workflows/test.yml or create a new .github/workflows/e2e.yml.
  • Environment: Ubuntu-latest.

Steps for the Agent

  1. Setup Job:
    • Checkout code.
    • Install Node.js and Playwright dependencies.
    • npx playwright install --with-deps.
  2. Environment Provisioning:
    • Spin up the Freeshard stack using docker-compose up -d.
    • Wait for shard_core and traefik to be healthy.
  3. Execution:
    • Run npm run test:e2e inside the tests/e2e directory.
  4. Artifact Handling:
    • Use actions/upload-artifact to save the playwright-report/ on failure.
    • Ensure screenshots and trace files are included.

Acceptance

  • E2E tests run on every Pull Request.
  • Failures in E2E tests block the PR merge.
  • Trace files are downloadable from the GitHub Action summary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions