Skip to content

Automate examples update to latest Cypress version #767

@MikeMcC399

Description

@MikeMcC399

Current situation

When a new version of Cypress is released, the examples are not automatically updated to use this version.

For examples based on npm technology, scripts/npm-install-examples.sh updates Cypress to the latest version. This can be invoked manually through npm run install-deps. The settings in .npmrc determine that an exact version number is used.

In previous PRs, for instance PR #747, examples based on the Yarn 1 (Classic) package manager and the pnpm package manager were updated manually and individually:

  1. examples/start-and-yarn-workspaces was updated using:
    yarn upgrade-interactive --latest

  2. examples/install-command was updated using:
    yarn add cypress -D

  3. examples/basic-pnpm was updated using:
    pnpm update --latest

  4. The run command in .github/workflows/example-install-only.yml run: npm i cypress@12.x.x was manually edited.

examples/v9 is frozen to use the last Cypress 9.x version (9.7.0) and is not expected to change.

Suggested improvement

Provide better automation for easier updates to Cypress latest version, consistently applied.

See also #747 (review).

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