Merge pull request #22 from Laina-Protocol/feat/use-contractimport-fo… #92
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: "Rust: Build & test" | |
on: | |
push: | |
branches: | |
- "**" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Build Reflector | |
run: | | |
cd contracts/reflector | |
cargo build --release --target wasm32-unknown-unknown | |
cd ../.. | |
- name: Build mock Reflector | |
run: | | |
cd contracts/reflector_mock | |
cargo build --release --target wasm32-unknown-unknown | |
cd ../.. | |
- name: Build Loan pool contract | |
run: | | |
cd contracts/loan_pool | |
cargo build --release --target wasm32-unknown-unknown | |
cd ../.. | |
- name: Build | |
run: cargo build --release --target wasm32-unknown-unknown | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Run clippy | |
run: cargo clippy -- -D warnings |