-
Notifications
You must be signed in to change notification settings - Fork 69
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
Mz/bundle test cover #1146
Mz/bundle test cover #1146
Changes from 9 commits
ada0ec0
a5a9fc7
3fea6d7
6aeda95
c4d21fa
cf11bf5
cb60de0
3c52aba
2a386f6
0575b4a
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 |
---|---|---|
|
@@ -25,17 +25,12 @@ jobs: | |
registry-url: 'https://registry.npmjs.org' | ||
cache: yarn | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
- name: Install esbuild Dependencies | ||
run: | | ||
yarn add -D esbuild@^0.19.5 esbuild-plugin-pino@^2.1.0 npm-dts@^1.3.12 esbuild-plugin-tsc@^0.4.0 | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
- name: Update for Bundling | ||
run: | | ||
node scripts/updateForBundling.js | ||
- name: Generate Bundle | ||
- name: Generate Bundle and Check if there is any dependency that needs to be externalized and is not in the whitelist. | ||
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. I used this script to bundle to detect if there is any dependencies that should be externalized. |
||
run: | | ||
yarn build | ||
node scripts/build.js | ||
node scripts/bundleWithCheck.js | ||
- name: Post Bundling Update | ||
run: | | ||
node scripts/postBundlingUpdate.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
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. I updated the node version to the latest because originally it uses node v18 which is not compatible with the dev dependency, npm-dts, which I just added 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. What is the minimum supported node version for sfdx-core? Is there a way to not change nodejs version? |
||
node-version: lts/* | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
with: | ||
ignore-scripts: true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint && yarn pretty-quick --staged | ||
node ./scripts/scanTs.js | ||
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. I added this extra step to scan all ts artifacts to list usages of fs.read* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I specify these dev dependencies in package.json, so I removed this step in the workflow.