feat: sweep per single subaccount id (#27) #46
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
name: Build and Test ICP Prototype Backend | |
on: [push, pull_request] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.75.0 | |
components: rustfmt, clippy | |
override: true | |
- name: Install rustup | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
rustup install 1.27.1 | |
rustup default 1.27.1 | |
- name: Install wasm32 target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Run cargo fmt | |
run: cargo fmt -- --check | |
- name: Run cargo clippy | |
run: cargo clippy -- -D warnings | |
- name: Build with cargo | |
run: cargo build --release --target wasm32-unknown-unknown --package icp_subaccount_indexer | |
- name: Run tests with cargo | |
run: cargo test --features "happy_path" && cargo test --features "sad_path" |