Skip to content

Commit

Permalink
run snap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vlopes11 committed Dec 7, 2023
1 parent ffcae36 commit 17a35e0
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: rustup show
- name: Install wasm32-wasi
run: rustup target add wasm32-wasi
- name: Create a new sov-runtime library
- name: Create the sov-runtime library
run: |
cargo new --lib sov-runtime
echo -e '[package]\nname = "sov-runtime"\nversion = "0.1.0"\nedition = "2021"\n[dependencies]\nborsh = "0.10.3"\nserde_json = "1.0"\nsov-modules-api = { git = "https://github.com/Sovereign-Labs/sovereign-sdk.git", rev = "df169be", features = ["serde"] }\ndemo-stf = { git = "https://github.com/Sovereign-Labs/sovereign-sdk.git", rev = "df169be", features = ["serde"] }\nsov-mock-da = { git = "https://github.com/Sovereign-Labs/sovereign-sdk.git", rev = "df169be" }\n' > ./sov-runtime/Cargo.toml
Expand All @@ -32,3 +32,21 @@ jobs:
run: cargo run -- sov-snap-generator init --defaults --path ./sov-runtime --target ./sov-runtime-snap
- name: Build the Snap project
run: cargo run -- sov-snap-generator build --defaults --target ./sov-runtime-snap
- name: Install WASM tools
run: |
PACKAGE_URL="https://github.com/WebAssembly/binaryen/releases/download/version_116/binaryen-version_116-x86_64-linux.tar.gz"
INSTALL_PATH="/usr/local/bin"
curl -L $PACKAGE_URL | tar xz -C $INSTALL_PATH
shell: bash
- name: Install WABT
run: |
PACKAGE_URL="https://github.com/WebAssembly/wabt/releases/download/1.0.34/wabt-1.0.34-ubuntu.tar.gz"
INSTALL_PATH="/usr/local/bin"
curl -L $PACKAGE_URL | tar xz -C $INSTALL_PATH
shell: bash
- name: Install Google Chrome
run: yarn install-chrome
- name: Run Snap tests
run |
cd sov-runtime-snap
yarn test

0 comments on commit 17a35e0

Please sign in to comment.