Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

json-formatter generates empty json file on github actions #33

@vojtech-cerveny

Description

@vojtech-cerveny

👓 What did you see?

It seems, that json-formatter doesn't work correctly on github actions - it doesn't return anything after calling cucumber-json-formatter --help + it generates empty json file using this cmd

cucumber-json-formatter < cypress/results/reports/cucumber_json/cucumber-messages.ndjson > cypress/results/cucumber-standalone.json

✅ What did you expect to see?

cucumber-json-formatter work correctly on github actions.
Workflow is:

  1. Add folder into PATH
  2. Download cucumber-json-formatter (linux version) into folder
  3. chmod +x
  4. Run tests to generate ndjson
  5. It should generate json also - doesn't work
  6. Execute formatter in separate step - doesn't work

📦 Which tool/library version are you using?

this is package.json, but I don't think that it is needed due I doesn't work in standalone version.

package.json
    "@badeball/cypress-cucumber-preprocessor": "^12.1.0",
    "@bahmutov/cypress-esbuild-preprocessor": "^2.1.3",
    "cypress": "^10.6.0",
    "cypress-multi-reporters": "^1.6.1"

🔬 How could we reproduce it?

https://github.com/vojtech-cerveny/cypress-cucumber-framework

Steps to reproduce the behavior:

  1. Check workflow
  2. This line should generate json file from ndjson (it works locally), but it doesn't on github actions.
    https://github.com/vojtech-cerveny/cypress-cucumber-framework/actions/runs/3549525386/workflow#L66

image

📚 Any additional context?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions