-
Notifications
You must be signed in to change notification settings - Fork 400
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
ci: test samples and examples with a packaged bolt build #2372
base: main
Are you sure you want to change the base?
Changes from all commits
3fba83d
3d8f5a3
ab2504f
e5ad367
155d38b
5ea64ca
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
const { App, ExpressReceiver, LogLevel, FileInstallationStore } = require('@slack/bolt'); | ||
|
||
/** | ||
* @type {import("@slack/bolt/dist/receivers/ParamsIncomingMessage").ParamsIncomingMessage}; | ||
*/ | ||
const _example = null; | ||
Comment on lines
+3
to
+6
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. TBH I think However I'm super curious to know if exporting it from the top-level would fix the current |
||
|
||
// Create an ExpressReceiver | ||
const receiver = new ExpressReceiver({ | ||
signingSecret: process.env.SLACK_SIGNING_SECRET, | ||
|
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. Updating FWIW I'm interested in knowing if we want to include |
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.
Some TILs are included here, though I believe this can still be improved:
npm pack
will package@slack/bolt
as if it's going to be releasednode_modules
of the bolt-js repo must be removed or nested directories can make use of these pacakgesThe
*.tgz
file seems ideal for testing in a production environment like this since it lets us build bolt-js then remove itsnode_modules
before testing a sample!I'm not thrilled with the relative paths here, but am interested in if this is an approach we're alright taking?