leo/.github/workflows/wasm.yml

40 lines
885 B
YAML
Raw Normal View History

2021-09-25 12:13:59 +03:00
name: WASM
2021-09-23 18:59:36 +03:00
on:
pull_request:
push:
branches:
- master
- staging
- trying
paths-ignore:
- 'docs/**'
- 'documentation/**'
env:
RUST_BACKTRACE: 1
jobs:
test-wasm-parser:
2021-09-25 12:13:59 +03:00
name: Test on ${{ matrix.os }}
2021-09-23 18:59:36 +03:00
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: wasm
strategy:
matrix:
2021-09-25 12:13:59 +03:00
os: [windows-latest]
2021-09-23 18:59:36 +03:00
steps:
- name: Checkout
uses: actions/checkout@v2
2021-09-23 19:14:38 +03:00
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
2021-09-23 18:59:36 +03:00
- name: Install wasm-pack
2021-09-23 19:24:43 +03:00
run: cargo install wasm-pack
2021-09-23 18:59:36 +03:00
- name: Run wasm-pack
run: wasm-pack build --dev --target nodejs
- name: Install dependencies and run tests
run: cd tests && npm ci && npm test