-
Notifications
You must be signed in to change notification settings - Fork 9
30 lines (24 loc) · 1.24 KB
/
test.yml
File metadata and controls
30 lines (24 loc) · 1.24 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
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: wasm-pack build --target nodejs
- run: wasm-pack test --node
- run: cargo check
- run: cargo check --target wasm32-unknown-unknown
- run: cargo check --no-default-features
- run: cargo check --target wasm32-unknown-unknown --no-default-features
- run: cargo check --no-default-features --features console_error_panic_hook
- run: cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
- run: cargo check --no-default-features --features "console_error_panic_hook wee_alloc"
- run: cargo check --target wasm32-unknown-unknown --no-default-features --features "console_error_panic_hook wee_alloc"
# install experimental wasm bindgen cli
- uses: actions/setup-node@v2
with:
node-version: "15"
- run: cargo install wasm-bindgen-cli --git https://github.com/rustwasm/wasm-bindgen
- run: yarn build