Support wasm #185
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
name: test | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set default toolchain | |
run: rustup default nightly | |
- name: Set profile | |
run: rustup set profile minimal | |
- name: Add wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install wasm-pack | |
run: cargo install wasm-pack | |
- name: Run cargo test | |
run: make cargo-test | |
- name: Run wasm-pack test | |
run: make wasm-test | |
regtest-test: | |
name: Run regtest tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v2 | |
- name: Set up Docker Compose | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y docker-compose | |
- name: Set default toolchain | |
run: rustup default nightly | |
- name: Set profile | |
run: rustup set profile minimal | |
- name: Add wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install wasm-pack | |
run: cargo install wasm-pack | |
- name: Start regtest environment | |
working-directory: regtest | |
run: sh start.sh | |
- name: Run cargo regtest tests | |
run: make cargo-regtest-test | |
- name: Run WASM regtest tests | |
run: make wasm-regtest-test |