-
Notifications
You must be signed in to change notification settings - Fork 65
39 lines (34 loc) · 1.06 KB
/
e2e.yml
File metadata and controls
39 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
path: |
~/.cargo/registry
~/.cargo/git
target
- run: cargo build --features=cli --release
- working-directory: ${{ matrix.example.folder }}
run: |
npm install @bytecodealliance/componentize-js
npx componentize-js \
--wizer-bin=../../../../target/release/wizer \
-w wit \
-o component.wasm \
component.js