Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

ci(sdk): test the JavaScript SDK on its Node 18 floor

Yudhi Armyndharis30b5cf70a8f7
diff --git a/.github/workflows/sdk-ci.yml b/.github/workflows/sdk-ci.yml
index fbf59540a..429059d8c 100644
--- a/.github/workflows/sdk-ci.yml
+++ b/.github/workflows/sdk-ci.yml
@@ -33,9 +33,13 @@ permissions:
jobs:
javascript:
- name: JavaScript SDK
+ name: JavaScript SDK (${{ matrix.node }})
runs-on: ubuntu-latest
timeout-minutes: 15
+ strategy:
+ fail-fast: false
+ matrix:
+ node: ['18', '22'] # declared engines floor + current
defaults:
run:
working-directory: sdk/javascript
@@ -43,7 +47,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
- node-version: '22'
+ node-version: ${{ matrix.node }}
cache: 'npm'
cache-dependency-path: sdk/javascript/package-lock.json
- run: npm ci
diff --git a/docs/09-testing-strategy.md b/docs/09-testing-strategy.md
index ceec6643e..7423aa587 100644
--- a/docs/09-testing-strategy.md
+++ b/docs/09-testing-strategy.md
@@ -282,7 +282,7 @@ contract surfaces that SDKs mirror (`src/**/dto/**`, `src/**/*.controller.ts`, `
`src/engine/interfaces/whatsapp-engine.interface.ts`), so any backend controller or service change also
re-runs the SDK suites. It runs:
-- JavaScript SDK tests, type-check, build, and dual CJS/ESM smoke test.
+- JavaScript SDK tests, type-check, build, and dual CJS/ESM smoke test on Node 18 (the `engines` floor) and 22.
- Python SDK tests with `pytest`.
- PHP SDK tests with PHPUnit.
- Java SDK tests with Maven.