Skip to content

Merge pull request #22 from Laina-Protocol/feat/use-contractimport-fo… #92

Merge pull request #22 from Laina-Protocol/feat/use-contractimport-fo…

Merge pull request #22 from Laina-Protocol/feat/use-contractimport-fo… #92

Workflow file for this run

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