From 086e59829613fb5c1c463eea3fc638cfd2f9c7db Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Thu, 14 May 2020 12:45:36 -0500 Subject: [PATCH] Add asset size workflow (#7864) This uses a fork of the Ember Asset Size Action to report on changes to the filesizes of the production UI build as a comment to the PR. The fork includes fixes to make it work with a subdirectory (ui/ in our case) and to make it update the PR comment if it exists vs posting repeatedly to the thread. --- .github/workflows/ember-assets.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ember-assets.yml diff --git a/.github/workflows/ember-assets.yml b/.github/workflows/ember-assets.yml new file mode 100644 index 000000000..dcbf0fa4c --- /dev/null +++ b/.github/workflows/ember-assets.yml @@ -0,0 +1,24 @@ +name: Ember Asset Sizes + +on: + pull_request: + paths: + - 'ui/**' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2-beta + with: + fetch-depth: 0 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '10.x' + - uses: backspace/ember-asset-size-action@edit-comment + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + working-directory: "ui"