2021-09-21 18:24:03 +03:00
|
|
|
name: Wasm
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
#on:
|
|
|
|
# push:
|
|
|
|
# # Ignore commits created by bors
|
|
|
|
# branches-ignore:
|
|
|
|
# - 'staging'
|
|
|
|
# - 'trying'
|
|
|
|
# pull_request:
|
|
|
|
# branches-ignore:
|
|
|
|
# - 'staging'
|
|
|
|
# - 'trying'
|
|
|
|
|
|
|
|
env:
|
|
|
|
CI: 1
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
# We explicitly do this to cache properly.
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
|
|
|
|
- name: Install wasm-pack
|
|
|
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2021-11-09 14:42:49 +03:00
|
|
|
(cd crates/wasm && yarn)
|
|
|
|
(cd crates/wasm && ./scripts/build.sh)
|
2021-09-21 18:24:03 +03:00
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
2021-11-09 14:42:49 +03:00
|
|
|
(cd crates/wasm && ./scripts/test.sh)
|