MCPcopy Index your code
hub / github.com/ampproject/amphtml / runCheck

Function runCheck

build-system/tasks/pr-check.js:26–32  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

24 */
25async function prCheck() {
26 const runCheck = (cmd) => {
27 const {status} = timedExec(cmd);
28 if (status != 0) {
29 stopTimer(jobName, startTime);
30 throw new Error('Local PR check failed. See logs above.');
31 }
32 };
33
34 setLoggingPrefix(jobName);
35 const startTime = startTimer(jobName);

Callers 1

prCheckFunction · 0.70

Calls 1

stopTimerFunction · 0.85

Tested by

no test coverage detected