-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
36 changed files
with
199 additions
and
177 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 |
---|---|---|
|
@@ -4,19 +4,6 @@ version: 2.1 | |
aliases: | ||
- &working_directory ~/commercetools-sdk-typescript | ||
|
||
# node version 16 | ||
- &restore_yarn_cache_node_16 | ||
name: 'Restoring yarn cache' | ||
keys: | ||
- yarn-cache-node_16-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} | ||
|
||
- &save_yarn_cache_node_16 | ||
name: 'Saving yarn cache' | ||
key: yarn-cache-node_16-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ~/.cache/yarn | ||
|
||
|
||
# node version 18 | ||
- &restore_yarn_cache_node_18 | ||
name: 'Restoring yarn cache' | ||
|
@@ -44,13 +31,22 @@ aliases: | |
paths: | ||
- ~/.cache/yarn | ||
|
||
# node version 22 | ||
- &restore_yarn_cache_node_22 | ||
name: 'Restoring yarn cache' | ||
keys: | ||
- yarn-cache-node_22-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} | ||
|
||
- &save_yarn_cache_node_22 | ||
name: 'Saving yarn cache' | ||
key: yarn-cache-node_22-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} | ||
# Persisting to the workspace is always relative to the root which is our working directory. | ||
# https://circleci.com/docs/2.0/configuration-reference/#persist_to_workspace | ||
paths: | ||
- ~/.cache/yarn | ||
|
||
# executors | ||
executors: | ||
node_16: | ||
docker: | ||
- image: cimg/node:16.20.2 | ||
working_directory: *working_directory | ||
|
||
node_18: | ||
docker: | ||
- image: cimg/node:18.20.3 | ||
|
@@ -61,22 +57,27 @@ executors: | |
- image: cimg/node:20.14.0 | ||
working_directory: *working_directory | ||
|
||
node_22: | ||
docker: | ||
- image: cimg/node:22.12.0 | ||
working_directory: *working_directory | ||
|
||
|
||
# orbs | ||
orbs: | ||
codecov: codecov/[email protected] | ||
|
||
# jobs | ||
jobs: | ||
install_test_node_16: | ||
executor: node_16 | ||
install_test_node_18: | ||
executor: node_18 | ||
steps: | ||
- checkout | ||
- restore_cache: *restore_yarn_cache_node_16 | ||
- restore_cache: *restore_yarn_cache_node_18 | ||
- run: | ||
name: Installing dependencies | ||
command: yarn install --ignore-engines --frozen-lockfile # temp ignore engine checks [will deprecate node v16 soon] | ||
- save_cache: *save_yarn_cache_node_16 | ||
command: yarn install --frozen-lockfile | ||
- save_cache: *save_yarn_cache_node_18 | ||
- run: | ||
name: Install example dependencies | ||
command: | | ||
|
@@ -93,16 +94,22 @@ jobs: | |
- run: | ||
name: Running tests | ||
command: yarn test --testPathIgnorePatterns='packages/platform-sdk/test/integration-tests' | ||
- run: | ||
name: Running integration tests | ||
command: yarn test packages/platform-sdk/test/integration-tests --coverage | ||
- codecov/upload: | ||
file: coverage/clover.xml | ||
flags: integrationtests | ||
|
||
install_test_node_18: | ||
executor: node_18 | ||
install_test_node_20: | ||
executor: node_20 | ||
steps: | ||
- checkout | ||
- restore_cache: *restore_yarn_cache_node_18 | ||
- restore_cache: *restore_yarn_cache_node_20 | ||
- run: | ||
name: Installing dependencies | ||
command: yarn install --frozen-lockfile | ||
- save_cache: *save_yarn_cache_node_18 | ||
- save_cache: *save_yarn_cache_node_20 | ||
- run: | ||
name: Install example dependencies | ||
command: | | ||
|
@@ -119,16 +126,38 @@ jobs: | |
- run: | ||
name: Running tests | ||
command: yarn test --testPathIgnorePatterns='packages/platform-sdk/test/integration-tests' | ||
- run: | ||
name: Running integration tests | ||
command: yarn test packages/platform-sdk/test/integration-tests --coverage | ||
- codecov/upload: | ||
file: coverage/clover.xml | ||
flags: integrationtests | ||
|
||
install_test_node_20: | ||
executor: node_20 | ||
install_test_node_22: | ||
executor: node_22 | ||
steps: | ||
- checkout | ||
- restore_cache: *restore_yarn_cache_node_20 | ||
- restore_cache: *restore_yarn_cache_node_22 | ||
- run: | ||
name: Installing dependencies | ||
command: yarn install --frozen-lockfile | ||
- save_cache: *save_yarn_cache_node_20 | ||
- save_cache: *save_yarn_cache_node_22 | ||
- run: | ||
name: Install example dependencies | ||
command: | | ||
cd examples | ||
yarn install --frozen-lockfile | ||
- run: | ||
name: Building packages | ||
command: yarn build | ||
- run: | ||
name: Running example tests | ||
command: | | ||
cd examples | ||
yarn test | ||
- run: | ||
name: Running tests | ||
command: yarn test --testPathIgnorePatterns='packages/platform-sdk/test/integration-tests' | ||
- run: | ||
name: Running integration tests | ||
command: yarn test packages/platform-sdk/test/integration-tests --coverage | ||
|
@@ -141,13 +170,13 @@ workflows: | |
version: 2 | ||
build_and_test: | ||
jobs: | ||
- install_test_node_16: | ||
context: org-global | ||
- install_test_node_18: | ||
context: org-global | ||
# requires: | ||
# - install_test_node_16 | ||
- install_test_node_20: | ||
context: org-global | ||
requires: | ||
- install_test_node_18 | ||
- install_test_node_22: | ||
context: org-global | ||
requires: | ||
- install_test_node_20 |
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
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
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
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
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
1 change: 0 additions & 1 deletion
1
packages/platform-sdk/test/integration-tests/process/process.test.ts
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,7 @@ | |
"url": "https://github.com/commercetools/commercetools-sdk-typescript/issues" | ||
}, | ||
"dependencies": { | ||
"abort-controller": "3.0.0", | ||
"buffer": "^6.0.3", | ||
"node-fetch": "^2.6.1" | ||
"buffer": "^6.0.3" | ||
}, | ||
"files": ["dist", "CHANGELOG.md"], | ||
"author": "Chukwuemeka Ajima <[email protected]>", | ||
|
@@ -49,7 +47,7 @@ | |
"common-tags": "1.8.2", | ||
"dotenv": "16.4.5", | ||
"jest": "29.7.0", | ||
"nock": "12.0.3", | ||
"nock": "^14.0.0-beta.19", | ||
"organize-imports-cli": "0.10.0" | ||
}, | ||
"scripts": { | ||
|
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
1 change: 0 additions & 1 deletion
1
packages/sdk-client-v3/src/middleware/auth-middleware/anonymous-session-flow.ts
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import fetch from 'node-fetch' | ||
import { | ||
AuthMiddlewareOptions, | ||
Middleware, | ||
|
1 change: 0 additions & 1 deletion
1
packages/sdk-client-v3/src/middleware/auth-middleware/client-credentials-flow.ts
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import fetch from 'node-fetch' | ||
import { | ||
AuthMiddlewareOptions, | ||
Middleware, | ||
|
1 change: 0 additions & 1 deletion
1
packages/sdk-client-v3/src/middleware/auth-middleware/password-flow.ts
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import fetch from 'node-fetch' | ||
import { | ||
Middleware, | ||
MiddlewareRequest, | ||
|
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
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
Oops, something went wrong.