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

Function pushBuildWorkflow

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

* Steps to run during push builds.

()

Source from the content-addressed store, hash-verified

21 * Steps to run during push builds.
22 */
23function pushBuildWorkflow() {
24 try {
25 generateCircleCiShardTestFileList(unitTestPaths);
26 timedExecOrThrow(
27 `amp unit --headless --coverage --filelist ${FILELIST_PATH}`,
28 'Unit tests failed!'
29 );
30 } catch (e) {
31 if (e.status) {
32 process.exitCode = e.status;
33 }
34 }
35}
36
37/**
38 * Steps to run during PR builds.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected