From 50c3642f26230591d6747708d295db1ba7921799 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 9 Nov 2018 00:26:05 +0100 Subject: [PATCH] build: fix angular bot not creating size baseline * 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 897816f86c3c..ec540d65a6ff 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -211,13 +211,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