Skip to content

[Feature]: create-playwright option --no-gha to skip GitHub Actions workflow question #33243

@karlhorky

Description

@karlhorky

🚀 Feature Request

Add --no-gha option to create-playwright to be able to skip the question of creating the GitHub Actions workflow, instead of requiring interactive input from the user

Already opened a PR for this, but it was closed because there's no companion issue yet:

Example

$ pnpm create playwright
Getting started with writing end-to-end tests with Playwright:
Initializing project in '.'
✔ Do you want to use TypeScript or JavaScript? · TypeScript
✔ Where to put your end-to-end tests? · tests
✔ Add a GitHub Actions workflow? (y/N) · false
✖ Install Playwright browsers (can be done manually via 'pnpm exec playwright install')? (Y/n) · true

$ pnpm create playwright --no-gha
Getting started with writing end-to-end tests with Playwright:
Initializing project in '.'
✔ Do you want to use TypeScript or JavaScript? · TypeScript
✔ Where to put your end-to-end tests? · tests
✖ Install Playwright browsers (can be done manually via 'pnpm exec playwright install')? (Y/n) · true

Motivation

Be able to run the script in a more automated, zero-config way, instead of having to input details interactively as a user.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions