function prBuildWorkflow() {
  if (
    !buildTargetsInclude(
      Targets.RUNTIME,
      Targets.UNIT_TEST,
      Targets.E2E_TEST,
      Targets.INTEGRATION_TEST
    )
  ) {
    skipDependentJobs(
      jobName,
      'this PR does not affect the runtime, unit tests, integration tests, or end-to-end tests'
    );
    return;
  }
  if (buildTargetsInclude(Targets.RUNTIME, Targets.UNIT_TEST)) {
    timedExecOrDie('amp unit --safari');
  }
  if (buildTargetsInclude(Targets.RUNTIME, Targets.INTEGRATION_TEST)) {
    timedExecOrDie('amp integration --nobuild --compiled --safari');
  }
  if (buildTargetsInclude(Targets.RUNTIME, Targets.E2E_TEST)) {
    timedExecOrDie('amp e2e --nobuild --compiled --browsers=safari');
  }
}
/**
 * Steps to run during PR builds.
 */
Steps to run during PR builds.
Steps to run during PR builds .
function prBuildWorkflow() {
  if (
    !buildTargetsInclude(
      Targets.RUNTIME,
      Targets.UNIT_TEST,
      Targets.E2E_TEST,
      Targets.INTEGRATION_TEST
    )
  ) {
    skipDependentJobs(
      jobName,
      'this PR does not affect the runtime, unit tests, integration tests, or end-to-end tests'
    );
    return;
  }
  if (buildTargetsInclude(Targets.RUNTIME, Targets.UNIT_TEST)) {
    timedExecOrDie('amp unit --safari');
  }
  if (buildTargetsInclude(Targets.RUNTIME, Targets.INTEGRATION_TEST)) {
    timedExecOrDie('amp integration --nobuild --compiled --safari');
  }
  if (buildTargetsInclude(Targets.RUNTIME, Targets.E2E_TEST)) {
    timedExecOrDie('amp e2e --nobuild --compiled --browsers=safari');
  }
}
function prBuildWorkflow ( ) { if ( ! buildTargetsInclude ( Targets . RUNTIME , Targets . UNIT_TEST , Targets . E2E_TEST , Targets . INTEGRATION_TEST ) ) { skipDependentJobs ( jobName , 'this PR does not affect the runtime, unit tests, integration tests, or end-to-end tests' ) ; return ; } if ( buildTargetsInclude ( Targets . RUNTIME , Targets . UNIT_TEST ) ) { timedExecOrDie ( 'amp unit --safari' ) ; } if ( buildTargetsInclude ( Targets . RUNTIME , Targets . INTEGRATION_TEST ) ) { timedExecOrDie ( 'amp integration --nobuild --compiled --safari' ) ; } if ( buildTargetsInclude ( Targets . RUNTIME , Targets . E2E_TEST ) ) { timedExecOrDie ( 'amp e2e --nobuild --compiled --browsers=safari' ) ; } }
Steps to run during PR builds.
Steps to run during PR builds .