mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-20 16:11:35 +03:00
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: WASM Tests
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- staging
|
|
- trying
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'documentation/**'
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
|
|
jobs:
|
|
test-wasm-parser:
|
|
name: Test WASM on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
defaults:
|
|
run:
|
|
working-directory: wasm
|
|
strategy:
|
|
matrix:
|
|
os: [macOS-latest, windows-latest, ubuntu-latest]
|
|
include:
|
|
- os: ubuntu-latest
|
|
sccache-path: /home/runner/.cache/sccache
|
|
- os: macos-latest
|
|
sccache-path: /Users/runner/Library/Caches/Mozilla.sccache
|
|
- os: windows-latest
|
|
sccache-path: "C:\\Users\\runneradmin\\AppData\\Local\\Mozilla\\sccache"
|
|
env:
|
|
RUSTC_WRAPPER: sccache
|
|
SCCACHE_CACHE_SIZE: 2G
|
|
SCCACHE_DIR: ${{ matrix.sccache-path }}
|
|
# SCCACHE_RECACHE: 1 # Uncomment this to clear cache, then comment it back out
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Install Rust Stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
- name: Install wasm-pack
|
|
run: npm install -g wasm-pack
|
|
- name: Run wasm-pack
|
|
run: wasm-pack build --dev --target nodejs
|
|
- name: Install dependencies and run tests
|
|
run: cd tests && npm ci && npm test
|
|
|
|
|
|
|