MCPcopy
hub / github.com/ampproject/amphtml / prBuildWorkflow

Function prBuildWorkflow

build-system/pr-check/unit-tests.js:40–52  ·  view source on GitHub ↗

* Steps to run during PR builds.

()

Source from the content-addressed store, hash-verified

38 * Steps to run during PR builds.
39 */
40function prBuildWorkflow() {
41 if (buildTargetsInclude(Targets.RUNTIME, Targets.UNIT_TEST)) {
42 generateCircleCiShardTestFileList(unitTestPaths);
43 timedExecOrDie(
44 `amp unit --headless --coverage --filelist ${FILELIST_PATH}`
45 );
46 } else {
47 skipDependentJobs(
48 jobName,
49 'this PR does not affect the runtime or unit tests'
50 );
51 }
52}
53
54runCiJob(jobName, pushBuildWorkflow, prBuildWorkflow);

Callers

nothing calls this directly

Calls 3

buildTargetsIncludeFunction · 0.85
skipDependentJobsFunction · 0.85

Tested by

no test coverage detected