Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/actions/build-test-wasm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ runs:
wasm-pack build --target nodejs ./crates/${{ inputs.crate }} --out-dir ../../prebuilds/${{ inputs.crate }}
shell: bash
- name: Test WASM
# The pipeline crate's tests are top-level node:test suites that need
# --test-force-exit (the wasm exporter keeps the event loop alive after
# a flush); the other wasm crates use plain test/wasm/<crate>/ scripts.
# pipeline and remote_config have top-level node:test suites; the other wasm crates use
# plain test/wasm/<crate>/ scripts. pipeline additionally needs --test-force-exit, since its
# wasm exporter keeps the event loop alive after a flush.
run: |
if [ "${{ inputs.crate }}" = "pipeline" ]; then
node --test --test-force-exit test/pipeline.js
else
node test-wasm.js ${{ inputs.crate }}
fi
case "${{ inputs.crate }}" in
pipeline) node --test --test-force-exit test/pipeline.js ;;
remote_config) node --test test/remote-config.js ;;
*) node test-wasm.js ${{ inputs.crate }} ;;
esac
shell: bash
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- library_config
- datadog-js-zstd
- pipeline
- remote_config
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: 'Use composite action'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- library_config
- datadog-js-zstd
- pipeline
- remote_config
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: 'Use composite action'
Expand Down
Loading
Loading