Skip to content

feat(ci): add e2e test for wizer via componentize-js use #10

feat(ci): add e2e test for wizer via componentize-js use

feat(ci): add e2e test for wizer via componentize-js use #10

Workflow file for this run

name: e2e
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
# Ensure that the wizer binary works via componentize-js
componentize-js:
runs-on: ubuntu-latest
strategy:
matrix:
examples:
- folder: tests/fixtures/components/hello-world
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
- run: cargo build --features=cli --release
# TODO: switch to NPM-released componentize-js once wizer bin is released
- working-directory: ${{ matrix.example.folder }}
run: |
npm install git+https://github.com/bytecodealliance/componentize-js
npx componentize-js \
--wizer-bin=../../../../target/release/wizer \
-w wit \
-o component.wasm \
component.js