Skip to content

test: Add comprehensive coverage for refund_escrow_funds #283

test: Add comprehensive coverage for refund_escrow_funds

test: Add comprehensive coverage for refund_escrow_funds #283

Workflow file for this run

name: Soroban Smart Contracts CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
- name: Install Rust target for Soroban
run: |
source $HOME/.cargo/env
rustup target add wasm32v1-none
- name: Install Stellar CLI with Homebrew
run: |
brew update
brew install stellar-cli
stellar --version
- name: Build Cargo project
run: |
cd quicklendx-contracts
cargo build --verbose
- name: Check code quality
run: |
source $HOME/.cargo/env
cd quicklendx-contracts
cargo check --lib --verbose
- name: Install wasm-opt (binaryen) for size reduction
run: brew install binaryen
- name: Build and check WASM size budget
run: |
source $HOME/.cargo/env
quicklendx-contracts/scripts/check-wasm-size.sh
# WASM size budget is also covered by integration test: cargo test wasm_release_build_fits_size_budget
# Note: Tests temporarily disabled due to known soroban-sdk 22.0.x compilation issue
# Uncomment when soroban-sdk test issue is resolved
# - name: Run Cargo tests
# run: |
# source $HOME/.cargo/env
# cd quicklendx-contracts
# cargo test --verbose
# - name: Test coverage (minimum 95%)
# run: |
# source $HOME/.cargo/env
# cd quicklendx-contracts
# cargo install cargo-llvm-cov
# cargo llvm-cov --lib --fail-under 95