Skip to content

Commit

Permalink
Merge pull request #2759 from lpsinger/summarize-lambda-sizes
Browse files Browse the repository at this point in the history
Report Lambda sizes in GitHub workflow summary
  • Loading branch information
dakota002 authored Dec 9, 2024
2 parents 1986a6a + f7e044e commit 7312c55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7312c55

Please sign in to comment.