function pushBuildWorkflow() {
  try {
    timedExecOrThrow('amp unit --report --safari', 'Unit tests failed!');
    timedExecOrThrow(
      'amp integration --report --nobuild --compiled --safari',
      'Integration tests failed!'
    );
    timedExecOrThrow(
      'amp e2e --report --nobuild --compiled --browsers=safari',
      'End-to-end tests failed!'
    );
  } catch (e) {
    if (e.status) {
      process.exitCode = e.status;
    }
  } finally {
    timedExecOrDie('amp test-report-upload');
  }
}
/**
 * Steps to run during push builds.
 */
Steps to run during push builds.
Steps to run during push builds .
function pushBuildWorkflow() {
  try {
    timedExecOrThrow('amp unit --report --safari', 'Unit tests failed!');
    timedExecOrThrow(
      'amp integration --report --nobuild --compiled --safari',
      'Integration tests failed!'
    );
    timedExecOrThrow(
      'amp e2e --report --nobuild --compiled --browsers=safari',
      'End-to-end tests failed!'
    );
  } catch (e) {
    if (e.status) {
      process.exitCode = e.status;
    }
  } finally {
    timedExecOrDie('amp test-report-upload');
  }
}
function pushBuildWorkflow ( ) { try { timedExecOrThrow ( 'amp unit --report --safari' , 'Unit tests failed!' ) ; timedExecOrThrow ( 'amp integration --report --nobuild --compiled --safari' , 'Integration tests failed!' ) ; timedExecOrThrow ( 'amp e2e --report --nobuild --compiled --browsers=safari' , 'End-to-end tests failed!' ) ; } catch ( e ) { if ( e . status ) { process . exitCode = e . status ; } } finally { timedExecOrDie ( 'amp test-report-upload' ) ; } }
Steps to run during push builds.
Steps to run during push builds .