diff --git a/.github/workflows/transform-sdk-build.yml b/.github/workflows/transform-sdk-build.yml index 67d8e5cfbc819..de9ec8610b23e 100644 --- a/.github/workflows/transform-sdk-build.yml +++ b/.github/workflows/transform-sdk-build.yml @@ -251,6 +251,10 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: 20 - name: Build integration tests working-directory: src/transform-sdk/js run: | @@ -260,6 +264,8 @@ jobs: cmake --build --preset release-static -- redpanda_js_transform cat identity.js | ./generate_js_provider.py > identity_source.wat cat identity_logging.js | ./generate_js_provider.py > logging_source.wat + (cd schema_registry_example && npm install && npm run build) + cat schema_registry_example/dist/schema_registry_example.js | ./generate_js_provider.py > sr_source.wat curl -SLO https://github.com/WebAssembly/binaryen/releases/download/version_117/binaryen-version_117-x86_64-linux.tar.gz tar xf binaryen-version_117-x86_64-linux.tar.gz rm binaryen-version_117-x86_64-linux.tar.gz @@ -273,6 +279,11 @@ jobs: ./logging_source.wat redpanda_js_provider \ -mvp --enable-simd --enable-bulk-memory --enable-multimemory \ -o logging.wasm + ./binaryen-version_117/bin/wasm-merge \ + ./build/release-static/redpanda_js_transform js_vm \ + ./sr_source.wat redpanda_js_provider \ + -mvp --enable-simd --enable-bulk-memory --enable-multimemory \ + -o sr.wasm - name: Download integration test suite uses: actions/download-artifact@v4 with: @@ -284,7 +295,7 @@ jobs: IDENTITY: identity.wasm LOGGING: logging.wasm TEE: "@UNIMPLEMENTED@" - SCHEMA_REGISTRY: "@UNIMPLEMENTED@" + SCHEMA_REGISTRY: sr.wasm run: | chmod +x wasm-integration-test ./wasm-integration-test -test.v