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

Function prBuildWorkflow

build-system/pr-check/validator-tests.js:28–51  ·  view source on GitHub ↗

* Steps to run during PR builds.

()

Source from the content-addressed store, hash-verified

26 * Steps to run during PR builds.
27 */
28function prBuildWorkflow() {
29 if (
30 !buildTargetsInclude(
31 Targets.HTML_FIXTURES,
32 Targets.RUNTIME,
33 Targets.VALIDATOR,
34 Targets.VALIDATOR_WEBUI
35 )
36 ) {
37 skipDependentJobs(
38 jobName,
39 'this PR does not affect the runtime, HTML fixtures, validator, or validator web UI'
40 );
41 return;
42 }
43
44 if (buildTargetsInclude(Targets.HTML_FIXTURES)) {
45 timedExecOrDie('amp validate-html-fixtures');
46 }
47
48 if (buildTargetsInclude(Targets.VALIDATOR)) {
49 timedExecOrDie('amp validator-cpp');
50 }
51}
52
53runCiJob(jobName, pushBuildWorkflow, prBuildWorkflow);

Callers

nothing calls this directly

Calls 2

buildTargetsIncludeFunction · 0.85
skipDependentJobsFunction · 0.85

Tested by

no test coverage detected