-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify the build matrix to add Node 17 to the environments under test. The GCC setup from Node 16 is reused here. As a workaround for a bug caused by Node 17 switching to OpenSSL 3, we add the `--openssl-legacy-provider` option to the `NODE_OPTIONS` environment variable. See [this node issue][node] and [this webpack issue][webpack] for details. [node]: nodejs/node#40455 [webpack]: webpack/webpack#14532
- Loading branch information
Showing
3 changed files
with
121 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,13 +62,15 @@ blocks: | |
- name: Git Lint (Lintje) | ||
commands: | ||
- script/lint_git | ||
- name: Node.js 16 - Build | ||
- name: Node.js 17 - Build | ||
dependencies: | ||
- Validation | ||
task: | ||
env_vars: | ||
- name: NODE_OPTIONS | ||
value: "--openssl-legacy-provider" | ||
- name: NODE_VERSION | ||
value: '16' | ||
value: '17' | ||
prologue: | ||
commands: | ||
- sem-version c 8 | ||
|
@@ -86,6 +88,105 @@ blocks: | |
- cache store $_PACKAGES_CACHE-packages-$SEMAPHORE_GIT_SHA-v$NODE_VERSION packages | ||
- cache store $_PACKAGES_CACHE-install-report-$SEMAPHORE_GIT_SHA-v$NODE_VERSION | ||
/tmp/appsignal-*-install.report | ||
- name: Node.js 17 - Tests | ||
dependencies: | ||
- Node.js 17 - Build | ||
task: | ||
env_vars: | ||
- name: NODE_VERSION | ||
value: '17' | ||
- name: _APPSIGNAL_EXTENSION_INSTALL | ||
value: 'false' | ||
prologue: | ||
commands: | ||
- sem-version c 8 | ||
- cache restore | ||
- cache restore $_PACKAGES_CACHE-packages-$SEMAPHORE_GIT_SHA-v$NODE_VERSION | ||
- cache restore $_PACKAGES_CACHE-install-report-$SEMAPHORE_GIT_SHA-v$NODE_VERSION | ||
- mono bootstrap --ci | ||
epilogue: *1 | ||
jobs: | ||
- name: "@appsignal/nodejs - nodejs" | ||
commands: | ||
- mono test --package=@appsignal/nodejs | ||
- name: "@appsignal/nodejs - nodejs - diagnose" | ||
commands: | ||
- git submodule init | ||
- git submodule update | ||
- LANGUAGE=nodejs test/integration/diagnose/bin/test | ||
- name: "@appsignal/nodejs-ext - nodejs-ext" | ||
commands: | ||
- mono test --package=@appsignal/nodejs-ext | ||
- mono run --package @appsignal/nodejs-ext -- npm run test:failure | ||
- name: "@appsignal/apollo-server - apollo-server@latest - integrations" | ||
commands: | ||
- script/install_test_example_packages apollo-server apollo-server-plugin-base@latest | ||
- script/test_package_integration apollo-server | ||
- name: "@appsignal/apollo-server - [email protected] - integrations" | ||
commands: | ||
- script/install_test_example_packages apollo-server [email protected] | ||
- script/test_package_integration apollo-server | ||
- name: "@appsignal/apollo-server - [email protected] - integrations" | ||
commands: | ||
- script/install_test_example_packages apollo-server [email protected] | ||
- script/test_package_integration apollo-server | ||
- name: "@appsignal/apollo-server - [email protected] - integrations" | ||
commands: | ||
- script/install_test_example_packages apollo-server [email protected] | ||
- script/test_package_integration apollo-server | ||
- name: "@appsignal/express - express@latest - integrations" | ||
commands: | ||
- script/install_test_example_packages express express@latest | ||
- script/test_package_integration express | ||
- name: "@appsignal/express - [email protected] - integrations" | ||
commands: | ||
- script/install_test_example_packages express [email protected] | ||
- script/test_package_integration express | ||
- name: "@appsignal/koa - koa@latest - integrations" | ||
commands: | ||
- script/install_test_example_packages koa koa@latest | ||
- script/test_package_integration koa | ||
- name: "@appsignal/koa - [email protected] - integrations" | ||
commands: | ||
- script/install_test_example_packages koa [email protected] | ||
- script/test_package_integration koa | ||
- name: "@appsignal/koa - [email protected] - integrations" | ||
commands: | ||
- script/install_test_example_packages koa [email protected] | ||
- script/test_package_integration koa | ||
- name: "@appsignal/nextjs - next.js@latest - integrations" | ||
commands: | ||
- script/install_test_example_packages nextjs next@latest react@latest react-dom@latest | ||
- script/test_package_integration nextjs | ||
- name: "@appsignal/nextjs - [email protected] - integrations" | ||
commands: | ||
- script/install_test_example_packages nextjs [email protected] [email protected] [email protected] | ||
- script/test_package_integration nextjs | ||
- name: "@appsignal/nextjs - [email protected] - integrations" | ||
commands: | ||
- script/install_test_example_packages nextjs [email protected] [email protected] [email protected] | ||
- script/test_package_integration nextjs | ||
- name: Node.js 16 - Build | ||
dependencies: | ||
- Validation | ||
task: | ||
env_vars: | ||
- name: NODE_VERSION | ||
value: '16' | ||
prologue: | ||
commands: | ||
- sem-version c 8 | ||
- cache restore | ||
- mono bootstrap --ci | ||
- cache store | ||
epilogue: *1 | ||
jobs: | ||
- name: Build | ||
commands: | ||
- mono build | ||
- cache store $_PACKAGES_CACHE-packages-$SEMAPHORE_GIT_SHA-v$NODE_VERSION packages | ||
- cache store $_PACKAGES_CACHE-install-report-$SEMAPHORE_GIT_SHA-v$NODE_VERSION | ||
/tmp/appsignal-*-install.report | ||
- name: Node.js 16 - Tests | ||
dependencies: | ||
- Node.js 16 - Build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters