* Steps to run during PR builds.
()
| 26 | * Steps to run during PR builds. |
| 27 | */ |
| 28 | function 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 | |
| 53 | runCiJob(jobName, pushBuildWorkflow, prBuildWorkflow); |
nothing calls this directly
no test coverage detected