From ffe0c3e8a55e0e33eca188bac633e625d1ce2e3a Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Sat, 10 Nov 2018 01:13:33 +0100 Subject: [PATCH] build: fix angular bot not creating size baseline (#14051) * Currently the Github robot is always pending on `master` because it looks like it couldn't load the artifacts from CircleCI. Based on the source code of the Robot, the artifact paths need to be in a specific path in order to be taken into account. --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a90eecafef4..16987719937 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -228,13 +228,17 @@ jobs: # Publish bundle artifacts which will be used to calculate the size change. # Note: Make sure that the size plugin from the Angular robot fetches the artifacts - # from this CircleCI job (see .github/angular-robot.yml) + # from this CircleCI job (see .github/angular-robot.yml). Additionally any artifacts need to + # be stored with the following path format: "{projectName}/{context}/{fileName}" + # This format is necessary because otherwise the bot is not able to pick up the + # artifacts from CircleCI. See: + # https://github.com/angular/github-robot/blob/master/functions/src/plugins/size.ts#L392-L394 - store_artifacts: path: dist/releases/material/bundles/material.umd.js - destination: material.umd.js + destination: /angular_material/material_release_output/material.umd.js - store_artifacts: path: /tmp/cdk-umd-artifacts - destination: / + destination: /angular_material/cdk_release_output/ - *save_cache