json-formatter icon indicating copy to clipboard operation
json-formatter copied to clipboard

json-formatter generates empty `json` file on github actions

Open vojtech-cerveny opened this issue 3 years ago • 3 comments

👓 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?

vojtech-cerveny avatar Nov 25 '22 16:11 vojtech-cerveny

This will affect also https://github.com/badeball/cypress-cucumber-preprocessor/issues/870

vojtech-cerveny avatar Nov 25 '22 17:11 vojtech-cerveny

@vojtech-cerveny did you ever get anywhere on this issue?

Clean-Cole avatar Jan 23 '23 15:01 Clean-Cole

@Clean-Cole sadly no.

vojtech-cerveny avatar Feb 05 '23 21:02 vojtech-cerveny