Skip to content

feat(contracts): Implement RAII Reentrancy Guard using temporary storage #622

feat(contracts): Implement RAII Reentrancy Guard using temporary storage

feat(contracts): Implement RAII Reentrancy Guard using temporary storage #622

Workflow file for this run

name: Contracts CI
on:
push:
branches: ["main", "fix-ci", "master"]
paths:
- "contracts/**"
pull_request:
branches: ["main", "fix-ci", "master"]
paths:
- "contracts/**"
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.88.0"
target: wasm32-unknown-unknown
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: contracts -> target
- name: Check formatting
run: cargo fmt --all -- --check
- name: Build
run: cargo build --workspace --release --locked
- name: Clippy
run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
- name: Run tests
run: cargo test --workspace --all-features --locked