From f7e044e1cd9f211bb4eaf88ffcf9e9bf66e29b92 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Sun, 8 Dec 2024 13:41:44 -0500 Subject: [PATCH] Report Lambda sizes in GitHub workflow summary --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 191190abb..c504f9b3c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,6 +24,12 @@ jobs: npm i --os=linux --cpu=arm64 - name: Build run: npm run build + - name: Summarize Lamdba deployment bundle sizes + run: | + echo '# Lambda Sizes' >> $GITHUB_STEP_SUMMARY + echo '|Size|Build Directory|' >> $GITHUB_STEP_SUMMARY + echo '|-|-|' >> $GITHUB_STEP_SUMMARY + du -hs $(find build -name 'index.*js' -exec dirname {} \;) | perl -pe 's/^\s*/|/; s/(\s+)/|/; s/$/|/' >> $GITHUB_STEP_SUMMARY - name: Upload artifacts uses: actions/upload-artifact@v4 with: