config parameter not passed from action to runner
I was running the action with the following setting but the defaultCommandTimeout config was not passed from the action to the runner:
- name: Run Cypress
uses: cypress-io/github-action@v2
with:
install: false
start: yarn workspace api start, yarn workspace main-ui serve
wait-on: "http://localhost:4000/healthcheck, http://localhost:3000"
command: yarn workspace main-ui cy:run
config: defaultCommandTimeout=20000
However, setting that value via environment variable works:
- name: Run Cypress
uses: cypress-io/github-action@v2
env:
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 20000
with:
install: false
start: yarn workspace api start, yarn workspace main-ui serve
wait-on: "http://localhost:4000/healthcheck, http://localhost:3000"
command: yarn workspace main-ui cy:run
Encountered the same problem. Same configuration failed to be passed via the action, while successfully worked with cypress configuration-file.
I was trying to set screenshotOnRunFailure false via the action.
@huy-nguyen
It looks like you ran into an issue which was not previously documented.
If you use the command parameter it overrides many other functions. See README > Custom test command:
Caution: using the action parameter
commandcauses multiple other parameters to be ignored including:auto-cancel-after-failures,browser,ci-build-id,command-prefix,component,config,config-file,env,group,headed,parallel,project,publish-summary,quiet,record,specandtag.
I suggest to close this issue as it is now explained.
Closing, since this is a stale inactive issue and a probable cause has been identified.