(script, env, fixture)
| 265 | } |
| 266 | |
| 267 | function runShell(script, env, fixture) { |
| 268 | const result = spawnSync("/bin/bash", ["--noprofile", "--norc", "-eo", "pipefail", "-c", script], { |
| 269 | cwd: ROOT, |
| 270 | env: Object.assign({}, process.env, { |
| 271 | PATH: `${fixture.bin}:${process.env.PATH || ""}`, |
| 272 | OCR_CALLS: fixture.callsPath, |
| 273 | OCR_NPM_CALLS: fixture.npmCallsPath, |
| 274 | OCR_CONFIG: fixture.configPath, |
| 275 | GITHUB_OUTPUT: path.join(fixture.dir, "github-output"), |
| 276 | GITHUB_ENV: path.join(fixture.dir, "github-env"), |
| 277 | }, env), |
| 278 | encoding: "utf8", |
| 279 | }); |
| 280 | return result; |
| 281 | } |
| 282 | |
| 283 | function runStep(step, values, fixture, extraEnv = {}, options = {}) { |
| 284 | let script = renderedRun(step, values); |
no outgoing calls
no test coverage detected