Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(infrastructure): Upload compiled screenshot test assets to GCS (#…
…2500) New NPM command: `screenshot:upload-assets`. First, run: ```bash npm start ``` Then, in another terminal, run: ```bash export MDC_GCLOUD_SERVICE_ACCOUNT_KEY_FILE_PATH=path/to/gcloud-service-account-key.json npm run screenshot:upload-assets ``` To avoid collisions between developers, every batch of files is uploaded to a directory with the following format: ``` /<bucket>/<username>/<timestamp>/<commit>/assets/ ``` E.g.: `/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/`. Sample output: * [`mdc-button/classes/baseline.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/classes/baseline.html) * [`mdc-button/classes/dense.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/classes/dense.html) * [`mdc-button/mixins/container-fill-color.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/container-fill-color.html) * [`mdc-button/mixins/corner-radius.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/corner-radius.html) * [`mdc-button/mixins/filled-accessible.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/filled-accessible.html) * [`mdc-button/mixins/horizontal-padding-baseline.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/horizontal-padding-baseline.html) * [`mdc-button/mixins/horizontal-padding-dense.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/horizontal-padding-dense.html) * [`mdc-button/mixins/icon-color.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/icon-color.html) * [`mdc-button/mixins/ink-color.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/ink-color.html) * [`mdc-button/mixins/stroke-color.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/stroke-color.html) * [`mdc-button/mixins/stroke-width.html`](https://storage.googleapis.com/mdc-web-screenshot-tests/advorak/2018/04/03/23_00_32_993/5ca514fe/assets/mdc-button/mixins/stroke-width.html)
- Loading branch information