-
Notifications
You must be signed in to change notification settings - Fork 277
36 lines (31 loc) · 1.08 KB
/
iroha2-dev-pr-wasm.yaml
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
31
32
33
34
35
36
name: I2::Dev::Wasm
on:
pull_request:
branches: [main]
paths:
- 'libs/iroha_data_model/**.rs'
- 'libs/iroha_data_model/**.yml'
- 'libs/iroha_data_model/**.json'
- 'libs/iroha_data_model/**.toml'
- 'libs/iroha_smart_contract/**.rs'
- 'libs/iroha_smart_contract/**.yml'
- 'libs/iroha_smart_contract/**.json'
- 'libs/iroha_smart_contract/**.toml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUSTUP_TOOLCHAIN: nightly-2024-04-18
jobs:
tests:
runs-on: ubuntu-latest
container:
image: hyperledger/iroha2-ci:nightly-2024-04-18
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install iroha_wasm_test_runner
run: cargo install --path bins/iroha_wasm_test_runner
- name: Run smart contract tests on WebAssembly VM
working-directory: smart_contract
run: mold --run cargo test -p iroha_smart_contract -p iroha_smart_contract_utils --release --tests --target wasm32-unknown-unknown --no-fail-fast --quiet