-
Notifications
You must be signed in to change notification settings - Fork 156
chore(build): broke up pr workflow & measure package size #1031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
1585596
0db209f
75df9a3
736dbf6
b108cfd
017c999
8e303d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Measure packages size | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
prNumber: | ||
description: "PR Number" | ||
required: true | ||
|
||
jobs: | ||
measure-utils-sizes: | ||
runs-on: ubuntu-latest | ||
env: | ||
NODE_ENV: dev | ||
PR_NUMBER: ${{ inputs.prNumber }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Packages size report | ||
uses: flochaz/pkg-size-action@v1.2.15 | ||
with: | ||
build-command: mkdir dist && npm run package -w packages/logger -w packages/tracer -w packages/metrics && npm run package-bundle -w packages/logger -w packages/tracer -w packages/metrics && bash -c "mv ./packages/*/dist/* dist/" && ls dist | ||
dist-directory: /dist | ||
pr-number: ${{ inputs.prNumber }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
}, | ||
"devDependencies": { | ||
"@types/aws-lambda": "^8.10.86", | ||
"@types/jest": "^27.5.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is needed because we are now running the tests outside of the |
||
"@types/node": "18.0.0", | ||
"esbuild": "^0.14.23", | ||
"eslint": "^8.4.0", | ||
|
@@ -32,4 +33,4 @@ | |
"@aws-lambda-powertools/tracer": "^1.0.1", | ||
"aws-sdk": "^2.1122.0" | ||
} | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.