Skip to content

Disable on pull, enable on merge #17

Disable on pull, enable on merge

Disable on pull, enable on merge #17

Workflow file for this run

name: babylonchain/babylon-contract/wasm-tests

Check failure on line 1 in .github/workflows/wasm-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/wasm-tests.yml

Invalid workflow file

`merge` is not a valid event name
on:
push:
branches: [ "main" ]
merge:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
WORKSPACE: "/home/runner/work/babylon-contract/babylon-contract"
jobs:
wasm-build-check-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Build optimised Wasm binaries
run: "./scripts/build-optimizer-ci.sh"
- name: List optimised Wasm binaries
run: bash -c "ls $WORKSPACE/artifacts/*.wasm"
- name: Install cosmwasm-check
run: cargo install --locked --debug --version ^2.0 cosmwasm-check
- name: Check the Wasm binaries' validity
run: bash -c "cosmwasm-check $WORKSPACE/artifacts/*.wasm"
- name: Integration tests based on CosmWasm
run: cargo test --test integration
- uses: actions/[email protected]
with:
path: |-
artifacts/babylon_contract.wasm
artifacts/btc_staking.wasm