MCPcopy Create free account
hub / github.com/cypress-io/github-action / waitOnMaybe

Function waitOnMaybe

index.js:420–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

418}
419
420const waitOnMaybe = () => {
421 const waitOn = core.getInput('wait-on')
422 if (!waitOn) {
423 return
424 }
425
426 const waitOnTimeout = core.getInput('wait-on-timeout') || '60'
427 const timeoutSeconds = parseFloat(waitOnTimeout)
428
429 if (isUrl(waitOn)) {
430 return waitOnUrl(waitOn, timeoutSeconds)
431 }
432
433 console.log('Waiting using command "%s"', waitOn)
434 return execCommand(waitOn, true)
435}
436
437const I = (x) => x
438

Callers

nothing calls this directly

Calls 3

isUrlFunction · 0.85
waitOnUrlFunction · 0.85
execCommandFunction · 0.85

Tested by

no test coverage detected