Skip to content

[BUG] Cypress Binary Missing on windows-latest — Release Workflow Fails #407

Description

@catosaurusrex2003

Repository affected

asyncapi/asyncapi-react

Workflow

https://github.com/asyncapi/asyncapi-react/blob/master/.github/workflows/if-nodejs-release.yml

Failing job

Test NodeJS release on windows-latest — Run #27760744752, Job #82469738418
This is not an isolated event, I rerunned this workflow and it still failed.

Description

The root cause is that the Cypress npm package is installed via npm ci, but the Cypress binary (a platform-specific executable that is downloaded separately from the npm package) is not present at test runtime on Windows. Cypress requires its binary to be either:

  • downloaded during npm ci (via a postinstall hook), or
  • restored from a cache before the test step runs.

On the windows-latest GitHub Actions runner, this binary download either fails silently or is skipped, causing npm test to exit with a non-zero code.

Expected behavior

All three OS matrix jobs (ubuntu-latest, macos-latest, windows-latest) pass the test step successfully before the release job runs.

Actual behavior

The windows-latest job fails with exit code 1 during npm test because the Cypress binary is missing.

Screenshots

No screenshot needed

How to Reproduce

  1. Push a fix: or feat: prefixed commit to master in asyncapi/asyncapi-react.
  2. Observe the Release - if Node project workflow trigger.
  3. The Test NodeJS release on windows-latest job fails at the Run test step.

🖥️ Device Information [optional]

No response

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions