Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

yarn-playwright

Composite GitHub Action that installs Playwright browsers, runs yarn e2e tasks, and uploads reports.

Usage

- name: Run Playwright e2e tests
  uses: equisoft-actions/yarn-playwright@v1
  with:
    working-directory: ./path/to/frontend/web
    pre-command: yarn <optional-setup-task>

Assumes dependencies are already installed (yarn-install) and Node is available (with-asdf-vm).

Inputs

Input Default Description
working-directory . Project directory
pre-command "" Optional shell command before tests
install-task-name test:e2e:install Yarn task to install browsers
task-name test:e2e Yarn task to run tests
report-name typescript-e2e-results.junit.xml JUnit artifact name
debug-report-name typescript-e2e-debug HTML report and trace artifact name
report-retention-days 5 Artifact retention in days

Reports

Paths are relative to working-directory.

Artifact Path If missing
JUnit build/playwright/junit.xml fails the step
HTML report build/playwright/report/ skipped
Traces build/playwright/test-results/ skipped

Configure Playwright reporters in {working-directory} to write under build/playwright/.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors