MCPcopy Create free account
hub / github.com/ampproject/amphtml / prBuildWorkflow

Function prBuildWorkflow

build-system/pr-check/bundle-size.js:23–30  ·  view source on GitHub ↗

* Steps to run during PR builds.

()

Source from the content-addressed store, hash-verified

21 * Steps to run during PR builds.
22 */
23function prBuildWorkflow() {
24 if (buildTargetsInclude(Targets.RUNTIME)) {
25 timedExecOrDie('amp bundle-size --on_pr_build');
26 } else {
27 timedExecOrDie('amp bundle-size --on_skipped_build');
28 skipDependentJobs(jobName, 'this PR does not affect the runtime');
29 }
30}
31
32runCiJob(jobName, pushBuildWorkflow, prBuildWorkflow);

Callers

nothing calls this directly

Calls 2

buildTargetsIncludeFunction · 0.85
skipDependentJobsFunction · 0.85

Tested by

no test coverage detected